entrust icon indicating copy to clipboard operation
entrust copied to clipboard

check role or permission on multi auth

Open anonprophet opened this issue 9 years ago • 3 comments

i can check the role using this code

Auth::guard('admin')->user()->hasRole('developer')

is there any shortcut code like not using multi auth ? bcoz Entrust::hasRole('developer') doesnt work..

-- edit --

blade @permission @role doesnt work too on multi auth

anonprophet avatar Oct 23 '16 03:10 anonprophet

same +1

tosslife avatar Nov 16 '16 04:11 tosslife

+1

d-knafo avatar Feb 06 '18 12:02 d-knafo

@anonprophet Are you solve this issuse?

AmrAbdalrahman avatar Sep 25 '18 10:09 AmrAbdalrahman