I got this problem in the route with one particular name ("headquarters"): the "show" route has the id parameter in plural, but normally it is in singular.
If I write:
Route::resource('quarters', 'HeadquartersController');
executing this command line:
php artisan route:list
I get the parameter in singular as expected:
Route::get('/quarters/{quarter}', 'HeadquartersController@show');
But if I write:
Route::resource('headquarters', 'HeadquartersController');
executing this command line:
php artisan route:list
I get the parameter in plural:
Route::get('/headquarters/{headquarters}', 'HeadquartersController@show');
from Newest questions tagged laravel-5 - Stack Overflow http://bit.ly/2ZxJP0R
via IFTTT
Aucun commentaire:
Enregistrer un commentaire