Authorizable
trait Authorizable (View source)
Methods
authorize(UnitEnum|string $ability, mixed $arguments = [])
Determine if the given ability should be granted for the entity.
bool
can(iterable|UnitEnum|string $abilities, mixed $arguments = [])
Determine if the entity has the given abilities.
bool
canAny(iterable|UnitEnum|string $abilities, mixed $arguments = [])
Determine if the entity has any of the given abilities.
bool
cant(iterable|UnitEnum|string $abilities, mixed $arguments = [])
Determine if the entity does not have the given abilities.
bool
cannot(iterable|UnitEnum|string $abilities, mixed $arguments = [])
Determine if the entity does not have the given abilities.
Details
Response
authorize(UnitEnum|string $ability, mixed $arguments = [])
Determine if the given ability should be granted for the entity.
bool
can(iterable|UnitEnum|string $abilities, mixed $arguments = [])
Determine if the entity has the given abilities.
bool
canAny(iterable|UnitEnum|string $abilities, mixed $arguments = [])
Determine if the entity has any of the given abilities.
bool
cant(iterable|UnitEnum|string $abilities, mixed $arguments = [])
Determine if the entity does not have the given abilities.
bool
cannot(iterable|UnitEnum|string $abilities, mixed $arguments = [])
Determine if the entity does not have the given abilities.