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.

#artisan#php#make#controller
php artisan make:controller ItemsController -r -m
copy
Full Artisan cheatsheet
NordVPN NordVPN