Closed CodeIgor closed 1 year ago
@CodeIgor could you please update the readme file as well to support this update
@kodeine Sure, feel free to tell me if there is something else needed Update README.md
@CodeIgor sorry for very late reply, it just slipped from my todo list.
So, endpermission
and endrole
was removed, can we make it backwards compatible?
@kodeine done, i changed the used directive back to how it was but with the guard method call
Thank you!
This fixes handling of a different guard other than application default.
Fixes: #135.
Added guard on HasPermission handle;
Added
$guard = $this->guard
on hasRole, hasPermission and protectMethods;Changed
$request->user()
to$request->user($guard)
on hasRole, hasPermission and protectMethods;Changed Blade directives to
Blade::if
method and guard added;