trait Authorizable

Methods

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

Determine if the entity has a given ability.

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

Determine if the entity does not have a given ability.

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

Determine if the entity does not have a given ability.

Details

at line 16
bool can(string $ability, array|mixed $arguments = [])

Determine if the entity has a given ability.

Parameters

string $ability
array|mixed $arguments

Return Value

bool

at line 28
bool cant(string $ability, array|mixed $arguments = [])

Determine if the entity does not have a given ability.

Parameters

string $ability
array|mixed $arguments

Return Value

bool

at line 40
bool cannot(string $ability, array|mixed $arguments = [])

Determine if the entity does not have a given ability.

Parameters

string $ability
array|mixed $arguments

Return Value

bool