Answer the question
In order to leave comments, you need to log in
How to cram another middleware here?
Installed sleeping owl admin. It came to the point of restricting access there to users who are not administrators. Yes, but I don’t want to do everything through roles, there is an option to simply do something like this in the admin config file:
...
'middleware' => ['auth','admin'],
...
...
'middleware' => ['admin'],
...
Answer the question
In order to leave comments, you need to log in
Route::group(['prefix' => 'admin', 'middleware' => 'auth'], function(){
// тут все маршруты для админку
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question