Spec-Zone.ru › Laravel 6

Обработка авторизации

трайт ОбработкаАвторизации (Просмотреть исходный код)

Методы

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/6.x/Illuminate/Auth/Access/HandlesAuthorization.html

Spec-Zone.ru

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