Skip to content

Glossary: Laravel

@csrf

A Blade directive that adds a hidden field holding the session's CSRF token to a form. Laravel checks the token on every POST, and without it the browser shows 419 Page Expired.

Where the book teaches it

Related terms

CSRFStatus codeBlade