Method |
Description |
|
abilities ( ) : Illuminate\Database\Eloquent\Relations\MorphToMany |
The abilities relationship. |
|
allow ( mixed $ability, mixed | null $model = null ) |
Give an ability to the model. |
|
disallow ( mixed $ability, mixed | null $model = null ) |
Remove an ability from the model. |
|
forbid ( mixed $ability, mixed | null $model = null ) |
Forbid an ability to the model. |
|
getAbilities ( ) : Illuminate\Database\Eloquent\Collection |
Get all of the model's allowed abilities. |
|
getForbiddenAbilities ( ) : Illuminate\Database\Eloquent\Collection |
Get all of the model's allowed abilities. |
|
unforbid ( mixed $ability, mixed | null $model = null ) |
Remove ability forbiddal from the model. |
|