No idea why it happened on your side. Just create a new Laravel 5 Project and copy from there. You can also manually make a new routes.php
Now I check on laravel githu, it don't have too.
Routes go in the RouteServiceProvider now.
routes.php has been removed.
You can either, create a new routes.php file and include it as per the comment in RouteServiceProvider or use the new method for defining routes - Annotations.
like what @SelfInvoking said, routes.php has been removed by default. You can enable it though and then add it back.
routes.php file is now out by default. Check the last commit to see how to enable it: https://github.com/laravel/laravel/commit/bc593c17aafa8e568e3f999893472698daf2bf37
We should all give a try on annotations. Laracast is providing a first video about the concept: https://laracasts.com/series/whats-new-in-laravel-5
If you wonder where to put model bindings it's should go to app/Providers/RouteServiceProvider.php within the before method (check comments)
If using annotations don't forget to update/add controllers you want to be scannable to protected $scan array within app/Providers/RouteServiceProvider.php too.
Then run the php artisan route:scan to scan routes and php artisan route:list to check the magic.
Sooooo, any chance that this Laracast for beginners will be updated to reflect this change? https://laracasts.com/series/laravel-5-from-scratch/
Or is there another place newbies should be looking, to learn Laravel?
(I just lost almost an hour, thinking I had done something wrong with my install, because there was no routes.php. That's very beginner-unfriendly.)
Thanks!
There are a few others out there that users can try
csheldonhess said:
Sooooo, any chance that this Laracast for beginners will be updated to reflect this change? https://laracasts.com/series/laravel-5-from-scratch/
Or is there another place newbies should be looking, to learn Laravel?
(I just lost almost an hour, thinking I had done something wrong with my install, because there was no routes.php. That's very beginner-unfriendly.)
Thanks!
Hi! Encountered the same problem as well and:
Hope that helps you as well.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community