Mar 27, 2018
0
Level 1
Spark Controller Routes in V6
I upgraded my Spark to version 6 and got an error when I pushed to my staging app that it couldn't find the team controller.
Class App\Http\Controllers\TeamController does not exist
This was not a problem previously, so I took a look at the routes files in /vendor/laravel/spark-aurelius/Http and compared them with previous versions. Up till version 5, the route was ...
$router->get('/'.$pluralTeamString.'', 'TeamController@all');
In version 6, the route is ...
$router->get('/settings/'.Spark::teamsPrefix(), 'TeamController@all');
I tried altering my routes file from this ...
$router->get('/teams', 'TeamController@all');
To several configurations of \settings\TeamController but couldn't get one to work. Am I missing something here?
Please or to participate in this conversation.