Bug Laravel "419 Page Expired" when submitting a form

KabirS 2 replies 298 views 2 participants
#1
I get 419 Page Expired every time I submit my contact form. GET works fine. What am I missing?
Solution #2
Most likely the CSRF token is missing. Add @csrf inside your form:
PHP
<form method="post" action="/contact">
    @csrf
    ...
</form>

Join the conversation — sign in or create a free account to reply.

Chat with us
Hi! Send us a message and we will reply here as soon as we can.