Support the ongoing development of Laravel.io →
posted 4 years ago
Laravel
Last updated 1 year ago.
0

Sure.

open up the web.php file in the routes directory and do the following.

Route::get('uri-name', function() { your php script goes here. }

change uri-name to what you want the uri to be and copy and paste what is in you script inside the closure. This would be the simplest way of doing it. However this isn't the best way of going about things and you should look into the laravel docs more. Your php script should probably be a controller.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.