Обработка авторизации
Трейт ОбработкаАвторизации (Просмотреть исходный код)
Методы
| Ответ | 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)
Создать новый ответ доступа.
protected Ответ 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.
© 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