Monday, April 10, 2017

Multiple Middleware to a route

I try to add multiple middleware to a route .

like this :

Route::get('/licences_to_confirm' , ['as' => 'licences_to_confirm', 'uses' => 'LicencieController@licenceToValid'])->middleware( 'isFederation' , 'isComite');

but it's doesn't work. someone now the way to add multiple middleware class to a route ? thanks a lot in advance.



via Mathieu Mourareau

Advertisement