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