I like to keep my controllers based on the sections they represent so I put them in folders. In this situation I have a folder caller tracker inside my controllers folder. I am trying to add it to the Route but its telling me that it can't find it.
So something like app->controller->tracker->TrackerController.php
Route::get('/tracker','tracker/TrackerController@index');
Thanks for any information you can provide!
I also keep my controllers in folders like admin, frontend etc... and I don't use folder name at all. It resolves by itself. Please try like it's not inside a sub folder.
// app/controllers/tracker/TrackerController.php
// Do not forget "composer dump-autoload" after controller creation
Route::get('tracker','TrackerController@index');
I wonder if you need to delete the compile.php so that it gets recreated to find your new files.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community