Variable: csrf_field


A helper to output the CSRF token inside a hidden field named _token from the session.

POST requests in Statamic will be keeping an eye out for a _token value.

{{ csrf_field }}
<input type="hidden" name="_token" value="csrftokenhere" />
Last modified on August 26, 2016