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