Let me tell you the points.
- I am using Entrust by https://github.com/Zizaco/entrust/
- I am using multi-auth i.e I have 2 guards as
adminstable there are users with multiple permissions (roles too).
permissionmiddelware has the code
Adminmodel, I have used
permissionis working fine on
routes.phpthe only problem I am facing is if any
Admin Userdoes not have permission suppose
can-createthen the html written in the that block should be hidden in blade file.
the above blade directives are not highlighted as @if or @foreach etc.
I think there might be something due multi-auth I am using, since Entrust takes
users table by default.
Kindly enlighten me, considering this situation.