Spec-Zone.ru › Laravel 7

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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API