1. Home
  2. Artisan
  3. Make controller with resources
#artisan#php#make#controller

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
copy
Full Artisan cheatsheet
Sitemap Git repository