roles
roles copied to clipboard
middleWare
hello , good job. Two problem around MiddleWare : first ) A statement by group with multiple key|value same as =>
Route::group(['middleware' => 'role:superadmin|role:admin' , 'prefix' => 'admin'], function () {
second )Respect level management, an exception "level < level ..." when the user session expire with
Route::group(['middleware' => 'level:8' , 'prefix' => 'admin'], function () {
thank you
so are you saying there is no way to add mutiple levels through middleware?
Sure, you can do it like this:
Route::group(['prefix' => 'dashboard', 'middleware' => 'role:admin|manager'], function()
{