make controller in the folder command code example Example: laravel php artisan make:controller in subfolder php artisan make:controller subfolder/SomeController