create controller in laravel inside folder code example Example: laravel php artisan make:controller in subfolder php artisan make:controller subfolder/SomeController