Support the ongoing development of Laravel.io →
Installation
Last updated 6 months ago.
0

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

Last updated 6 months ago.
0

Now I check on laravel githu, it don't have too.

Last updated 6 months ago.
0

Routes go in the RouteServiceProvider now.

Last updated 6 months ago.
0

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.

Last updated 6 months ago.
0

like what @SelfInvoking said, routes.php has been removed by default. You can enable it though and then add it back.

Last updated 6 months ago.
0

routes.php file is now out by default. Check the last commit to see how to enable it: https://github.com/laravel/laravel/commit/bc593c17aafa8e568e3f...

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.

Last updated 6 months ago.
0

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!

0

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:

  1. There's a new set of instructional video to cover this by laracasts: https://laracasts.com/series/laravel-from-scratch-2017/episodes/2

Hope that helps you as well.

0

Sign in to participate in this thread!

LaraJobs

Your banner here too?

yuomtheara yuomtheara Joined 12 Feb 2014

Moderators

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

Your logo here?

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

© 2022 Laravel.io - All rights reserved.