Zizaco / entrust

Role-based Permissions for Laravel 5
MIT License
6.05k stars 1.29k forks source link

@permission @role doesn't work #915

Open Amamdouh9950 opened 6 years ago

Amamdouh9950 commented 6 years ago

my problem is that @permission and @role doesn't work in a project and work in other project i searched alot i found solution to make @if(Auth::guard('admin_user')->user()->can('cmsusers')) it works but the problem that when i try make middleware $this->middleware(['role:super_admin']); it always return http exception for all users even the super_admin that have the permission to visit every route ...