AuthorizesRequests (Foundation\Auth)
AuthorizesRequests
trait AuthorizesRequests (View source)
Methods
Response | authorize(mixed $ability, mixed|array $arguments = array()) Authorize a given action for the current user. | |
Response | authorizeForUser(Authenticatable|mixed $user, mixed $ability, mixed|array $arguments = array()) Authorize a given action for a user. | |
void | authorizeResource(string $model, string|null $parameter = null, array $options = array(), Request|null $request = null) Authorize a resource action based on the incoming request. |
Details
Response authorize(mixed $ability, mixed|array $arguments = array())
Authorize a given action for the current user.
Response authorizeForUser(Authenticatable|mixed $user, mixed $ability, mixed|array $arguments = array())
Authorize a given action for a user.
void authorizeResource(string $model, string|null $parameter = null, array $options = array(), Request|null $request = null)
Authorize a resource action based on the incoming request.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.3/Illuminate/Foundation/Auth/Access/AuthorizesRequests.html