Resource routes

Route::resource declares all the CRUD routes of a resource at once: index, create, store, show, edit, update, destroy, mapped to the same-named methods of a controller. The only or except option limits the generated routes, and route:list displays them.

Example

Route::resource('produits', ProduitController::class);

Related concepts

The whole glossary