Skip to content

Commit

Permalink
Explain canany
Browse files Browse the repository at this point in the history
  • Loading branch information
drbyte committed Mar 19, 2024
1 parent cfbcb0e commit 48769a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/basic-usage/blade-directives.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ When using a permission-name associated with permissions created in this package

You can also use `@haspermission('permission-name')` or `@haspermission('permission-name', 'guard_name')` in similar fashion. With corresponding `@endhaspermission`.

There is no `@hasanypermission` directive: use `@canany` instead.


## Roles
As discussed in the Best Practices section of the docs, **it is strongly recommended to always use permission directives**, instead of role directives.
Expand Down

0 comments on commit 48769a2

Please sign in to comment.