php controller script code example Example: php controller php artisan make:controller ProductController --resource