interface Authorizable

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 a given ability.

Details

at line 18
Response authorize(UnitEnum|string $ability, mixed $arguments = [])

Determine if the given ability should be granted for the entity.

Parameters

UnitEnum|string $ability
mixed $arguments

Return Value

Response

Exceptions

AuthorizationException

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

Determine if the entity has a given ability.

Parameters

iterable|UnitEnum|string $abilities
mixed $arguments

Return Value

bool