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

tanveerkhanwd's avatar

I facing (1/1) TokenMismatchException in VerifyCsrfToken.php line 68 And if i run following function {{session_status()}} without login so it gives me session_id so if you understand my problem then help me ?

when i submit any form it return 'TokenMismatchException in VerifyCsrfToken.php line 68' error ??

and at my local it work fine and on server it return TokenMismatchException error.

0 likes
3 replies
slev1n's avatar

Check /storage/framework/sessions read/write permissions

tanveerkhanwd's avatar

I have already given 777 permission to storage folder with all sub directory with files

munazzil's avatar

Have you upload to to server and used below command because it came with your localhost project token,

      php artisan key:generate

else try with below commands,

    php artisan view:clear
    php artisan cahe:clear
    php artisan route:clear

Please or to participate in this conversation.