Reputation: 982
I download latest laravel project v5.3.10 but i cannot find route file and some others.
Upvotes: 6
Views: 1317
Reputation: 3551
app/routes/web.php you can write your all route files here
The web.php file contains routes that the RouteServiceProvider places in the web middleware group, which provides session state, CSRF protection, and cookie encryption. If your application does not offer a stateless, RESTful API, all of your routes will most likely be defined in the web.php file.
Read more about laravel 5.3 structure here
Upvotes: 2
Reputation: 2580
In the new laravel 5.3 there is no file named as routes.php
in App/HTTP/
In the new laravel you can find a new folder as routes
Inside it there is web.php
It is the new routes.php file
You can edit web.php
file just as you edit laravel 4 or older
Upvotes: 1
Reputation: 4408
routes.php
is no longer exists in Laravel 5.3 but there is a new routes directory on your root project folder, it contains two files web.php
and api.php
.
Those two files provide more explicit guidance in how to split the routes for your web interface and your API. The routes in the api route file are automatically assigned the api prefix by the RouteServiceProvider.
for further informations check Laravel 5.3 release notes.
Upvotes: 3
Reputation: 9988
You have the routes
directory in the root of your application.
Upvotes: 2