Hmm....if you did this:
$router->model('projects', 'App\Project');
Then, shouldn't these arguments also be plural (projects instead of project)?
Route::get('projects/{projects}/editorApprove', 'ProjectController@editorApprove');
public function editorApprove(Project $projects) {
Thanks thomastkim! This was the trick. Technically all I needed to do was adjust my route to .../{projects}/... Though I thought this was arbitrary since I've used {pid} in some of my other routes and it worked as expected.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community