Method |
Description |
|
detachAbilitiesWithPivotConstraints ( Model $model, array $ids, array $constraints ) : void |
Detach the given IDs from the model, with the given pivot constraints. |
|
filterNumericAbilities ( array $abilities ) : array |
Filter the provided abilities to the ones that are numeric. |
|
getAbilityIds ( mixed $abilities, Model | string | null $model, array $attributes ) : array |
Get the IDs of the provided abilities. |
|
getAbilityIdsFromModels ( array $abilities ) : array |
Get the Ability IDs from the models present in the given array. |
|
getAbilityIdsFromStrings ( array $abilities ) : array |
Get the ability IDs from the names present in the given array. |
|
getModel ( ) : Model | null |
Get the model from which to disassociate the abilities. |
|
getModelAbilityId ( string $ability, Model | string $model, array $attributes ) : integer | null |
Get the ability ID for the given model. |
|