roles icon indicating copy to clipboard operation
roles copied to clipboard

middleWare

Open ascito opened this issue 9 years ago • 2 comments

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

ascito avatar Feb 18 '16 03:02 ascito

so are you saying there is no way to add mutiple levels through middleware?

bostonareahuman avatar Mar 18 '16 13:03 bostonareahuman

Sure, you can do it like this:

Route::group(['prefix' => 'dashboard', 'middleware' => 'role:admin|manager'], function() 
{

Krato avatar Jul 20 '16 14:07 Krato