HandlesAuthorization

trait HandlesAuthorization (View source)

Methods

Response allow(string|null $message = null, mixed $code = null)

Create a new access response.

Response deny(string|null $message = null, mixed|null $code = null)

Throws an unauthorized exception.

Details

protected Response allow(string|null $message = null, mixed $code = null)

Create a new access response.

Parameters

string|null $message
mixed $code

Return Value

Response

protected Response deny(string|null $message = null, mixed|null $code = null)

Throws an unauthorized exception.

Parameters

string|null $message
mixed|null $code

Return Value

Response

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/7.x/Illuminate/Auth/Access/HandlesAuthorization.html