create controllers with all functions in php laravel code example Example: laravel create controller php artisan make:controller MyController