Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

helpmyworld's avatar

(1/1) TokenMismatchException in VerifyCsrfToken.php (line 68)

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.

0 likes
1 reply
Snapey's avatar
Snapey
Best Answer
Level 122

Have you added {{csrf_field()}} to your contact form?

Please or to participate in this conversation.