Spec-Zone.ru › Laravel 9

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

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

Методы

Ответ allow(string|null $message = null, mixed $code = null)

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

Ответ deny(string|null $message = null, mixed|null $code = null)

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

Ответ denyWithStatus(int $status, string|null $message = null, int|null $code = null)

Отказ с кодом HTTP-статуса.

Ответ denyAsNotFound(string|null $message = null, int|null $code = null)

Отказ с кодом HTTP-статуса 404.

Подробности

protected Ответ allow(string|null $message = null, mixed $code = null)

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

Параметры

string|null $message
mixed $code

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

Ответ

protected Ответ deny(string|null $message = null, mixed|null $code = null)

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

Параметры

string|null $message
mixed|null $code

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

Ответ

Ответ denyWithStatus(int $status, string|null $message = null, int|null $code = null)

Отказ с кодом HTTP-статуса.

Параметры

int $status
string|null $message
int|null $code

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

Ответ

Ответ denyAsNotFound(string|null $message = null, int|null $code = null)

Отказ с кодом HTTP-статуса 404.

Параметры

string|null $message
int|null $code

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

Ответ

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

Spec-Zone.ru

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