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