And is your route within routes.php file? Can you run php artisan route:list and make sure that your route uses the web middleware?
Laravel 6.4.1 on Post session _token is changed(updated) 419 Error
I face a strange behaviour.
My form has the @csrf token and I click submit button to post the form.
Somehow the session token has been changed after click submit button and there is no match(tokensMatch) with the token posted from the form and the token in the session.
I use file Session Driver with docker-compose.yml and nginx, PHP 7.2.14-fpm
In log files I get Session store not set on request
<form method="POST" id="register_id" action="{{ route('test') }}"> @csrf </form>
Can someone support?
Yes all my routes are under web middleware
Based on the last answer of this belowed article I managed to make it work... strange!!!
I just made the changes re posted my form and revert the changes back and then somehow worked.
Thanks @nakov for your answer
Please or to participate in this conversation.