W3cubDocs

/Laravel 8

Authorizable

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

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Foundation/Auth/Access/Authorizable.html