interface Authorizable (View source)

Methods

authorize(UnitEnum|string $ability, mixed $arguments = [])

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

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

Determine if the entity has a given ability.

Details

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

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

Determine if the entity has a given ability.

Parameters

iterable|string $abilities
mixed $arguments

Return Value

bool

Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.