Skip to content

Conversation

@erikn69
Copy link
Contributor

@erikn69 erikn69 commented Sep 5, 2022

Closes #2165
Closes #1997 (comment)
Closes #626 (comment)
Closes #309

This PR adds support for arrays(also expressions) on blade directives, example

@hasanyrole(['admin', 'manager'])
        
@endhasanyrole

@hasallroles(['admin', 'manager'])
        
@endhasallroles

Without this PR only PIPE an VARIABLE's REF are supported

@hasallroles("super-admin|moderator", $guard)

@drbyte drbyte merged commit 882e501 into spatie:main Oct 19, 2022
@erikn69 erikn69 deleted the fix_2165 branch February 17, 2023 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants