class Gate
Constants
EVALUATION_CRITERIA_PRIORITY |
|
Properties
protected Container | $container |
|
||
protected array | $policyClasses |
|
||
protected array | $policies |
|
Methods
Details
at
line 45
__construct(Container $container, array $policyClasses)
at
line 59
bool
allows(User $actor, string $ability, string|AbstractModel $model)
Determine if the given ability should be granted for the current user.
at
line 97
protected
getPolicies(string $model)
Get all policies for a given model and ability.