entrust icon indicating copy to clipboard operation
entrust copied to clipboard

cant set multiple role access in blade

Open SetareMaghari opened this issue 7 years ago • 2 comments

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?

SetareMaghari avatar Feb 12 '18 16:02 SetareMaghari

Maybe try with array-like style?

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

slawkens avatar Feb 17 '18 21:02 slawkens

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

SetareMaghari avatar Feb 18 '18 16:02 SetareMaghari