1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
//Add your controllers in your folders: //controllers\ //UserController.php //---- folder1 // ---- SubDirController.php //---- folder2 //Create your route not specifying the folder: Route::get('/subdir', 'folder1\index@SubDirController'); //Run composer dump-autoload //Done |