Additional helper methods and blade directives to help with more complex authorization queries.
Checks if any one of the abilities is authorized for the given model.
@canAny (['create', 'edit'], $post)
Checks if all of the abilities are authorized for the given model.
@canEvery (['create', 'edit', 'remove'], $post)
Same as @canAny
, but allowing for multiple conditionals when checking
authorizations.
Same as @canEvery
, but allowing for multiple conditionals when checking
authorizations.
The following inverse methods are also available, along with the same signatures as their counterparts:
@cannotAny
@cannotEvery
@elseCannotAny
@elseCannotEvery