trait AuthorizesRequests (View source)

Methods

authorize( mixed $ability, mixed|array $arguments = array())

Authorize a given action against a set of arguments.

authorizeForUser( Authenticatable|mixed $user, mixed $ability, mixed|array $arguments = array())

Authorize a given action for a user.

Details

at line line 18
Response authorize( mixed $ability, mixed|array $arguments = array())

Authorize a given action against a set of arguments.

Parameters

mixed $ability
mixed|array $arguments

Return Value

Response

Exceptions

AuthorizationException

at line line 35
Response authorizeForUser( Authenticatable|mixed $user, mixed $ability, mixed|array $arguments = array())

Authorize a given action for a user.

Parameters

Authenticatable|mixed $user
mixed $ability
mixed|array $arguments

Return Value

Response

Exceptions

AuthorizationException