Laravel Controller Subfolder routing
问题 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 ---- folder2 I tried to route to a controller, but laravel doesn't find it. Route::get('/product/dashboard', 'folder1.MakeDashboardController@showDashboard'); What am I doing wrong? 回答1: 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