class Gate
Constants
EVALUATION_CRITERIA_PRIORITY |
|
Properties
protected AbstractPolicy[] | $policies |
Methods
Details
at
line 34
__construct(Container $container, array $policyClasses)
at
line 46
bool
allows(User $actor, string $ability, AbstractModel|null $model)
<p>Determine if the given ability should be granted for the current user.</p>
at
line 85
protected array
getPolicies(string $model)
<p>Get all policies for a given model and ability.</p>