dimanche 28 avril 2019

Is there any way to put OR condition in between two middlewares?

I have a situation where i wanna give access to both user and company for the same route using middleware.Is there any way i can user any condition like AND/OR in the middleware group. If anyone of them are authorized than can access the routes.

Route::group(['middleware' => ['auth','company']], function() { my routes });



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire