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.
protected Response deny(string|null $message = null, mixed|null $code = null)
Throws an unauthorized exception.
© 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