use controller in subfolder laravel code example Example: laravel php artisan make:controller in subfolder php artisan make:controller subfolder/SomeController