Level 122
Have you added {{csrf_field()}} to your contact form?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Good day
I am trying to send an email via contact form. I get the error to say " (1/1) TokenMismatchException"
I tried to run php artisan config: cache and php artisan cache: clear
Rechecked my .env file and mail.php to see if it is the same as my email smtp details but nothing seem to work.
Have you added {{csrf_field()}} to your contact form?
Please or to participate in this conversation.