CSRF
The CSRF functions provide access to CSRF information.
csrf_token
The csrf_token
method returns the CSRF token value.
Returns: string
Twig
{{ csrf_token() }} // The CSRF token
csrf_field
The csrf_field
method returns the name of the CSRF field.
Returns: string
Twig
{{ csrf_field() }} // The CSRF field name