romanbican / roles

Powerful package for handling roles and permissions in Laravel 5
MIT License
1.16k stars 296 forks source link

how to use middleware in controller with 'or' condition #192

Open xlkit456852 opened 8 years ago

xlkit456852 commented 8 years ago

$this->middleware('permission:role_manage|level:100',['only'=>'index']); I want to use this to let the user that has role_manage permission or level 100 access the index method.But it seems just use the permission middleware , no level .