Missing routes.php File in New Laravel Project

The lastest version of Laravel doesn’t have a routes.php file.

This ‘routes.php’ file was located in \app\Http in the older versions.

In the newer version, Laravel 5.3, we have a folder named ‘routes’, where we can find the following files:

  • api.php
  • console.php
  • web.php

For this new version, the routes for your controllers, you can put inside web.php file

See the documentation about routing here

https://laravel.com/docs/5.3/routing#basic-routing

The video lesson you are watching may be outdated.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)