Hi, TokenMismatchException means that token is missing, do you have APP_KEY in your .env file?
also make sure you have write permission to the storage folder: sudo chmod -R 755 /storage
and try again
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello,
I developed a Laravel application with login page, I am using Laravel 5.4. Locally everything works fine. After deploying, my DB connection in the env file looks like that:
APP_DEBUG=true APP_LOG_LEVEL=debug APP_URL=myapp.nl
DB_CONNECTION=mysql DB_HOST=db_host_name.nl DB_PORT=3306 DB_DATABASE=db_name DB_USERNAME=user_name DB_PASSWORD=password
When I open myapp.nl, I get the login page, I fill in the login and password (that already exist on users table on my db_name). After that, the login and password fields get directly empty, I fill them in again, then I get:
Whoops, looks like something went wrong.
(1/1) TokenMismatchException in VerifyCsrfToken.php line 68
And nothing is logged into storage/logs/laravel.log
I hope you can help me get it work.. Thanks in advance!
Please or to participate in this conversation.