Resource Controllers: Specifying The Resource Model

Php artisan make:controller PhotoController --resource --model=Photo

If you are using route model binding and would like the resource controller's methods to type-hint a model instance, you may use the --model option when generating the controller.

Resource Controllers: Specifying The Resource Model — Structure map

Clickable & Draggable!

Resource Controllers: Specifying The Resource Model — Related pages: