Authorizable
Table of Contents
- can() : bool
- Determine if the entity has a given ability.
- cannot() : bool
- Determine if the entity does not have a given ability.
- cant() : bool
- Determine if the entity does not have a given ability.
Methods
can()
Determine if the entity has a given ability.
public
can(string $ability[, array<string|int, mixed>|mixed $arguments = [] ]) : bool
Parameters
- $ability : string
- $arguments : array<string|int, mixed>|mixed = []
Return values
bool —cannot()
Determine if the entity does not have a given ability.
public
cannot(string $ability[, array<string|int, mixed>|mixed $arguments = [] ]) : bool
Parameters
- $ability : string
- $arguments : array<string|int, mixed>|mixed = []
Return values
bool —cant()
Determine if the entity does not have a given ability.
public
cant(string $ability[, array<string|int, mixed>|mixed $arguments = [] ]) : bool
Parameters
- $ability : string
- $arguments : array<string|int, mixed>|mixed = []