1. Home
  2. Artisan
  3. Make controller with resources

Creates a new Controller class. "-r" flag creates all default route actions in the new Controller - index, show, create, store, edit, update and destroy. "-m" flag will create the Model file too.

php artisan make:controller ItemsController -r -m
Full Artisan cheatsheet
Sitemap Git repository