AuthorizesRequests (Foundation\Auth)
AuthorizesRequests
trait AuthorizesRequests (View source)
Methods
Response | authorize( mixed $ability, mixed|array $arguments = array()) Authorize a given action against a set of arguments. | |
Response | authorizeForUser( Authenticatable|mixed $user, mixed $ability, mixed|array $arguments = array()) Authorize a given action for a user. | |
Response | authorizeAtGate( Gate $gate, mixed $ability, mixed|array $arguments) Authorize the request at the given gate. |
Details
Response authorize( mixed $ability, mixed|array $arguments = array())
Authorize a given action against a set of arguments.
Response authorizeForUser( Authenticatable|mixed $user, mixed $ability, mixed|array $arguments = array())
Authorize a given action for a user.
Response authorizeAtGate( Gate $gate, mixed $ability, mixed|array $arguments)
Authorize the request at the given gate.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.1/Illuminate/Foundation/Auth/Access/AuthorizesRequests.html