I\'m new to Laravel. To try and keep my app organized I would like to put my controllers into subfolders of the controller folder.
controllers\\ ---- folder1
For Laravel 5.3 above:
php artisan make:controller test/TestController
This will create the test folder if it does not exist, then creates TestController inside.
test
TestController
TestController will look like this:
You can then register your route this way:
Route::get('/test','test\TestController@getTest');