I would like to have some routes which only be available for auth:user
OR auth:admin
middlewares.
I tried following code :
Route::group(['middleware' => ['auth:user', 'auth:admin']], function () {
//many routes here
});
But seems like these routes are available for auth:user
AND auth:admin
at the same time!!!
I don't want AND. I need OR.
Any helps would be appreciated
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1nlliYf
via IFTTT
Aucun commentaire:
Enregistrer un commentaire