agilasadi
4 months ago
351
19
Laravel

When a route URL is same as the package name, that URL does not work

Posted 4 months ago by agilasadi

I have a lot of URLs in my package routes, but one of them does not seem to work. When the route is as follows:


Route::get('package_name', '[email protected]');

It does not work, if I try to access localhost:8000/package_name then I get:

The requested resource /package_name was not found on this server.,

but when it's something as below:


Route::get('something', '[email protected]');

Then it works with no problem.

Also, when I run php artisan route:list the route is there as expected.

Please sign in or create an account to participate in this conversation.