Level 122
please define
after a while I get this error message
how long? More than the session timeout?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
When trying to login to my onlineshop online after a while I get this error message:
(1/1) TokenMismatchException
ref: https://codezen.io/laravel-fix-tokenmismatchexception-in-verifycsrftoken-php-error/
This onlineshop still using laravel 5.4
<form method="POST" action="{{ url('cpages/login') }}">
{{ csrf_field() }}
<div class="form-group">
<label>Email:</label>
<input name="email" type="text" class="form-control" />
</div>
<div class="form-group">
<label>Password:</label>
<input name="password" type="password" class="form-control" />
</div>
<div class="form-group">
<br />
<input type="submit" value="Login" class="btn btn-primary pull-right" />
</div>
</form>
</div>
I wonder why I still get tokenmismatch error since I already put {{ csrf_field() }} ?
Please or to participate in this conversation.