Download the PHP package genealabs/laravel-authorization-addons without Composer
On this page you can find all versions of the php package genealabs/laravel-authorization-addons. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download genealabs/laravel-authorization-addons
More information about genealabs/laravel-authorization-addons
Files in genealabs/laravel-authorization-addons
Package laravel-authorization-addons
Short Description Additional helper methods and blade directives to help with more complex authorization queries.
License MIT
Informations about the package laravel-authorization-addons
Authorization Addons for Laravel
Additional helper methods and blade directives to help with more complex authorization queries.
Usage
@canAny (iterable $abilities, $model)
Checks if any one of the abilities is authorized for the given model.
@canEvery (iterable $abilities, string $model)
Checks if all of the abilities are authorized for the given model.
@elseCanAny (iterable $abilities, string $model)
Same as @canAny
, but allowing for multiple conditionals when checking
authorizations.
@elseCanEvery (iterable $abilities, string $model)
Same as @canEvery
, but allowing for multiple conditionals when checking
authorizations.
Inverse Methods:
The following inverse methods are also available, along with the same signatures as their counterparts:
@cannotAny
@cannotEvery
@elseCannotAny
@elseCannotEvery