Support the ongoing development of Laravel.io →
Configuration Requests
Last updated 2 years ago.
0

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) {
0

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.

Last updated 8 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

illmatic illmatic Joined 28 Sep 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.