I want to retrieve an id
in the custom middleware that runs after following route: /quiz/1/edit
. I expect, that the $route
should contain 'id' => 1
, but it doesn't. Why is that?
public function handle($request, Closure $next)
{
dd($request->all()); // --> []
. . .
}
The route declaration:
Route::resource('quiz', 'QuizzesController');
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1TgO59A
via IFTTT
Aucun commentaire:
Enregistrer un commentaire