jeudi 22 octobre 2015

Laravel5 passing route args as middleware args

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?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire