TALL Tales

Laravel Standard Routes

08 Feb, 2021

If you want the default routes that are created by using resource in your routes/web.php, for example here:

Route::resource('photo', 'PhotoController');

Then these are the default routes that are created:

Verb | URI | Action Route Name

GET	/photos | index | photos.index 
GET	/photos/create | create | photos.create 
POST	/photos | store | photos.store 
GET	/photos/{photo} | show | show 
GET	/photos/{photo}/edit | edit | 	photos.edit 
PUT/PATCH	/photos/{photo} | update | 	photos.update 
DELETE	/photos/{photo} | destroy | 	photos.destroy