Method |
Description |
|
abilitiesByName ( array | string $ability, array $attributes = [] ) : Illuminate\Database\Eloquent\Collection |
Get or create abilities by their name. |
|
createAbility ( string $ability, Model | string $entity, array $attributes ) : Ability |
Create an ability for the given entity. |
|
createMissingAbilities ( Illuminate\Database\Eloquent\Collection $models, array $abilities, array $attributes = [] ) : Illuminate\Database\Eloquent\Collection |
Create abilities whose name is not in the given list. |
|
findAbility ( string $ability, Model | string $entity, array $attributes ) : Ability | null |
Find the ability for the given entity. |
|
getAbilityIds ( Ability | array | integer $abilities, Model | string | null $model, array $attributes ) : array |
Get the IDs of the provided abilities. |
|
getAssociatedAbilityIds ( Model $authority, array $abilityIds, boolean $forbidden ) : array |
Get the IDs of the associated abilities. |
|
getAuthority ( ) : Model |
Get the authority, creating a role authority if necessary. |
|
getEntityInstance ( Model | string $model ) : Model | string |
Get an instance of the given model. |
|
getModelAbility ( string $ability, Model | string $entity, array $attributes ) : Ability |
Get an ability for the given entity. |
|