Can’t find routes.php in Laravel 5

f*ckzzzzz!
A video on Laracast says that routes.php is inside ./app/Http/.
Can’t find it.
sh*tttzzz!

I’m trying to figure it out and update this post! 🙂

Updates!

OK!, almost 24hours later…
But!, I hadn’t been all this time looking for the solution.

YES!, I’v seen it before and tried but didn’t worked…

I was trying to use Laravel Annotation, but with no success.

OK!, heres the real sh*t.

We can have routes.php on Laravel 5 inside app/Http.

We need to active it on app/Providers/RouteServiceProvider.php, by uncomment require app_path(‘Http/routes.php’);.

You will need to update the “route:list” or what they call…
This is how…

php artisan clear-compiled
php artisan route:scan

and list them on console…

php artisan route:list

Your routes should work now.

More readings

https://laracasts.com/discuss/channels/general-discussion/route-annotation-in-laravel-5
https://laracasts.com/discuss/channels/general-discussion/informal-poll-routes-file
https://laracasts.com/series/laravel-5-from-scratch/

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.