Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] simplify the definition of multiple Blade "if" directives #2628

Merged
merged 3 commits into from
Mar 1, 2024
Merged

[feat] simplify the definition of multiple Blade "if" directives #2628

merged 3 commits into from
Mar 1, 2024

Conversation

alissn
Copy link
Contributor

@alissn alissn commented Feb 29, 2024

Hi,

This pull request simplifies the definition of a Blade directive. documentation on custom Blade directives here.

This change adds support for the following directives:

  • @haspermission, @unlesshaspermission, @elsehaspermission, @endhaspermission
  • @role, @unlessrole, @elserole, @endrole
  • @hasrole, @unlesshasrole, @elsehasrole, @endhasrole (and keeps previous @endunlessrole)
  • @hasanyrole, @unlesshasanyrole, @elsehasanyrole, @endhasanyrole
  • @hasallroles, @unlesshasallroles, @elsehasallroles, @endhasallroles
  • @hasexactroles, @unlesshasexactroles, @elsehasexactroles, @endhasexactroles

@drbyte
Copy link
Collaborator

drbyte commented Mar 1, 2024

Thanks

@drbyte drbyte changed the title [feat] simplify the definition of a Blade directives [feat] simplify the definition of multiple Blade "if" directives Mar 1, 2024
@drbyte drbyte merged commit 5243ff9 into spatie:main Mar 1, 2024
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants