trait Authorizable (View source)

Methods

bool
can(iterable|string $abilities, array|mixed $arguments = [])

Determine if the entity has the given abilities.

bool
canAny(iterable|string $abilities, array|mixed $arguments = [])

Determine if the entity has any of the given abilities.

bool
cant(iterable|string $abilities, array|mixed $arguments = [])

Determine if the entity does not have the given abilities.

bool
cannot(iterable|string $abilities, array|mixed $arguments = [])

Determine if the entity does not have the given abilities.

Details

bool can(iterable|string $abilities, array|mixed $arguments = [])

Determine if the entity has the given abilities.

Parameters

iterable|string $abilities
array|mixed $arguments

Return Value

bool

bool canAny(iterable|string $abilities, array|mixed $arguments = [])

Determine if the entity has any of the given abilities.

Parameters

iterable|string $abilities
array|mixed $arguments

Return Value

bool

bool cant(iterable|string $abilities, array|mixed $arguments = [])

Determine if the entity does not have the given abilities.

Parameters

iterable|string $abilities
array|mixed $arguments

Return Value

bool

bool cannot(iterable|string $abilities, array|mixed $arguments = [])

Determine if the entity does not have the given abilities.

Parameters

iterable|string $abilities
array|mixed $arguments

Return Value

bool