Method |
Description |
|
createForModel ( Model | string $model, string | array $attributes ) : static |
Create a new ability for a specific model. |
|
getIdentifierAttribute ( ) : string |
Get the identifier for this ability. |
|
getSlugAttribute ( ) : string |
Get the ability's "slug" attribute. |
|
makeForModel ( Model | string $model, string | array $attributes ) : static |
Make a new ability for a specific model. |
|
roles ( ) : Illuminate\Database\Eloquent\Relations\MorphToMany |
The roles relationship. |
|
scopeByName ( Builder | Builder $query, $name, $strict = false ) : void |
Constrain a query to having the given name. |
|
scopeForModel ( Builder | Builder $query, Model | string $model, boolean $strict = false ) : void |
Constrain a query to an ability for a specific model. |
|
scopeSimpleAbility ( Builder | Builder $query ) : void |
Constrain a query to simple abilities. |
|
users ( ) : Illuminate\Database\Eloquent\Relations\MorphToMany |
The users relationship. |
|