laravel / 10 / api / 10.x / illuminate / contracts / auth / access / authorizable.html

Authorizable

interface Authorizable (View source)

Methods

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

Determine if the entity has a given ability.

Details

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

Determine if the entity has a given ability.

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/10.x/Illuminate/Contracts/Auth/Access/Authorizable.html