Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel 5.3 - TokenMismatchException in VerifyCsrfToken.php line 68:

Tags:

laravel-5.3

When I log in to my app, and immediately go back when I enter it, and then try to log out, I get the error from the title, how can I fix that?

like image 210
Ludwig Avatar asked Oct 12 '16 11:10

Ludwig


2 Answers

I was facing same issue with laravel 5.4 .. and then following command works for me :)

chmod 777 storage/framework/sessions/

before this, it was chmod 775 storage/framework/sessions/ ... hence I was facing the issue...

Happy coding

like image 173
Manish Nakar Avatar answered Oct 09 '22 23:10

Manish Nakar


I solved this problem by editing the file config->session.php

'domain' => env('SESSION_DOMAIN', null),

and removing SESSION_DOMAIN from the file (.env)

and finally composer dumpautoload

like image 29
Raci Avatar answered Oct 09 '22 23:10

Raci