Spec-Zone.ru › Laravel 7

HandlesAuthorization

trait HandlesAuthorization (View source)

Методы

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

Создать новый ответ доступа.

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

Выбрасывает исключение отказа в доступе.

Детали

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

Создать новый ответ доступа.

Параметры

string|null $message
mixed $code

Возвращаемое значение

Response

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

Выбрасывает исключение отказа в доступе.

Параметры

string|null $message
mixed|null $code

Возвращаемое значение

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