how to load controller larave in php code example Example: use resource in laravel 8 php artisan make:controller PhotoController --resource --model=Photo