Level 1
use this :
<input type="hidden" value="{{ csrf_token() }}" name="_token">
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
So i have problems with token.. TokenMismatchException in VerifyCsrfToken.php line 67:
<form action="{{route('login')}}" method="POST">
<b>name:</b><br>
<input type="text" name="name"><br><br>
<b>Password:</b><br>
<input type="password" name="password"><br><br>
{{ csrf_field() }}
<input type="submit" value="Log in" name="submit">
</form>
There is CSRF field.. what is the problem?
Please or to participate in this conversation.