Masum billah
Masum billah

Reputation: 982

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

I download latest laravel project v5.3.10 but i cannot find route file and some others. enter image description hereenter image description here

Upvotes: 6

Views: 1317

Answers (5)

Vikash
Vikash

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

Advaith
Advaith

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

enter image description here

Upvotes: 1

Abdou Tahiri
Abdou Tahiri

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

Rama Durai
Rama Durai

Reputation: 750

The route file in a directory. Please check this,

route in laravel5.3

Upvotes: 2

Filip Koblański
Filip Koblański

Reputation: 9988

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

Upvotes: 2

Related Questions