Go to Home

Laravel Tips : TokenMismatchException in VerifyCsrfToken.php line 67

I recently tried deploying my demo server and everything was working fine except csrf token verification. Whenever I tried logging in, I got TokenMismatchException in VerifyCsrfToken.php line 67 error. I was confused. No matter what I do, I got the same issue.

And then when I gave following command

php artisan config:cache

it all worked perfectly. To understand it better, php artisan config:cache clears the already cached files under bootstrap folder and recaches them.

If you can see here, it simply calls php artisan cache:clear

Happy Coding 🙂