trait Authorizable

Methods

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

at line 16
bool can(iterable|UnitEnum|string $abilities, mixed $arguments = [])

Determine if the entity has the given abilities.

Parameters

iterable|UnitEnum|string $abilities
mixed $arguments

Return Value

bool

at line 24
bool canAny(iterable|UnitEnum|string $abilities, mixed $arguments = [])

Determine if the entity has any of the given abilities.

Parameters

iterable|UnitEnum|string $abilities
mixed $arguments

Return Value

bool

at line 32
bool cant(iterable|UnitEnum|string $abilities, mixed $arguments = [])

Determine if the entity does not have the given abilities.

Parameters

iterable|UnitEnum|string $abilities
mixed $arguments

Return Value

bool

at line 40
bool cannot(iterable|UnitEnum|string $abilities, mixed $arguments = [])

Determine if the entity does not have the given abilities.

Parameters

iterable|UnitEnum|string $abilities
mixed $arguments

Return Value

bool