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