Support the ongoing development of Laravel.io →
posted 6 years ago
Laravel

I have routes files with more than 300 routes, but most of them is getting 404 error. I ran the php artisan route:list command and it only showing 40 routes. Can someone suggest me what are the criteria for registering a laravel route?

Last updated 3 years ago.
0
moderator

Where do you have the routes? Normaly they are in the default files in the routes directory (api and web for http routes)

If you have other files and/or changes in the RouteServiceProvider you need to be sure it is loaded.

And be sure to clear the route cache ( php artisan route:clear )

0

This is laravel 5.1 application, so routes are in the app/Http/routes.php file.

0
moderator

Do you only see the first 40 routes or random ones? (And If you see the first, can you show the part that you have them)

0

Sign in to participate in this thread!

Eventy

Your banner here too?

janakad janakad Joined 21 Sep 2016

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.

© 2025 Laravel.io - All rights reserved.