VerifyCsrfToken
class VerifyCsrfToken (View source)
Свойства
| protected Encrypter | $encrypter | Реализация шифрования. | |
| protected array | $except | URI, которые следует исключить из проверки CSRF. |
Методы
| void | __construct(Encrypter $encrypter) Создать новый экземпляр middleware. | |
| mixed | handle(Request $request, Closure $next) Обработать входящий запрос. | |
| bool | shouldPassThrough(Request $request) Определить, должен ли URI запроса проходить через проверку CSRF. | |
| bool | tokensMatch(Request $request) Определить, совпадают ли сессионный и входной токены CSRF. | |
| Response | addCookieToResponse(Request $request, Response $response) Добавить токен CSRF в куки ответа. | |
| bool | isReading(Request $request) Определить, использует ли HTTP-запрос глагол «чтение». |
Подробное описание
void __construct(Encrypter $encrypter)
Создать новый экземпляр middleware.
protected bool shouldPassThrough(Request $request)
Определить, должен ли URI запроса проходить через проверку CSRF.
protected bool tokensMatch(Request $request)
Определить, совпадают ли сессионный и входной токены CSRF.
protected Response addCookieToResponse(Request $request, Response $response)
Добавить токен CSRF в куки ответа.
protected bool isReading(Request $request)
Определить, использует ли HTTP-запрос глагол «чтение».
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.1/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.html