Where is the route.php file in laravel v5.3.10?

I am downloading the latest laravel v5.3.10 project, but I cannot find the route file and some others. enter image description here enter image description here

+6
source share
5 answers

routes.php no longer exists in Laravel 5.3, but there is a new route directory in the project root folder, it contains two web.php and api.php .

These two files provide a clearer guide on separating routes for your web interface and your API. The routes in the api route file are automatically assigned the api prefix RouteServiceProvider.

For more information, check out the Laravel 5.3 release notes .

+2
source

You have the routes directory at the root of your application.

+2
source

The route file in the directory. Check it,

route to laravel5.3

+2
source

Application / routes / web.php you can write all route files here

The web.php file contains the routes that RouteServiceProvider places in a middleware group that provides session state, CSRF protection, and cookie encryption. If your application does not offer an API without RESTful content, all of your routes will most likely be defined in the web.php file.

Read more about laravel 5.3 structure here

+2
source

There is no file named routes.php in App/HTTP/ in new laravel 5.3
In the new laravel you can find the new folder as routes
Inside it is web.php This is a new route.php file.
You can edit the web.php file the same way you edit laravel 4 or older

enter image description here

+1
source

All Articles