We were talking about Laravel 5 on its release, we are pleased today to welcome Laravel 5.1
I would like the route argument to be passed as a middleware argument, something like this
Route::get('foo/{id}', ['middleware' => 'bar:{id}', function(){ });
How to do this?
Aucun commentaire:
Enregistrer un commentaire