laravel docs resource code example Example: laravel create resource controller php artisan make:controller PhotoController --resource --model=Photo