Laravel - Controllers - Specifying The Resource Model

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:

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