CSRF protection
CSRF protection verifies that state-changing web requests include a valid token.
Form token
Include a token in every state-changing HTML form handled by CSRF-protected routes.
Configuration
Configure CSRF behavior in config/security.php.
Common options include enabling the middleware, adding it to the kernel, verifying JSON requests, and choosing the input key.
except_methods are treated as safe methods and are not verified. Use except
for URI patterns that should bypass CSRF verification.