controller methods laravel code example Example: laravel create controller php artisan make:controller MyController