Hello, I have the same problem. Did you solve the error?
Thank you in advance!
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello all,
I've finished my local Laravel development. Now I'm publishing it with DigitalOcean and Laravel Forge. The problem is I have the error
TokenMismatchException in VerifyCsrfToken.php line 67:
in VerifyCsrfToken.php line 67
at VerifyCsrfToken->handle(object(Request), object(Closure))
at call_user_func_array(array(object(VerifyCsrfToken), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
at Pipeline->Illuminate\Routing{closure}(object(Request)) in ShareErrorsFromSession.php line 49
at ShareErrorsFromSession->handle(object(Request), object(Closure))
...
My session driver is database.
My tries :
- DROP database mydatabase;
- CREATE database mydatabase;
- php artisan cache:clear
- php artisan views:clear
- php artisan key:generate
- php artisan migrate --force
-> Login page TokenMismatchException line 67 :(
Have I missed something? My local version doesn't have that problem. CSRF token are correctly included in requests (local or prod versions).
Please or to participate in this conversation.