Zizaco / entrust

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

cant set multiple role access in blade #901

Open SetareMaghari opened 6 years ago

SetareMaghari commented 6 years ago

hi, i want to set @role around some tags in blade file, but i cant set multiple role names for that. im doing that in this way: @role('stores-owner', 'owner') //----- @endrole

but it works just for the first role and the second role cant see that part of the page whats the problem?

slawkens commented 6 years ago

Maybe try with array-like style?

Like this: @ROLE(array('stores-owner', 'owner'))

SetareMaghari commented 6 years ago

@slawkens works like a charm. i don't know why i hadn't test it before. tnx