Hi,
Did you change something in routes file ?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hey guys,
I have a login-form and when I hit the submit button I get this error:
TokenMismatchException in VerifyCsrfToken.php line 67:
I wonder why I get this error, because I have run the make:auth command and just changed some styling of the form. As you can see in my form below, I have already implemented the {!! csrf_field() !!}
Do you have any idea what I may have forgotten to look at?
<form role="form" method="POST" action="{{ url('/login') }}">
{!! csrf_field() !!}
<div class="row">
<div class="medium-2 columns"></div>
<div class="medium-8 columns">
<label>E-Mail</label>
<input type="email" name="email" value="{{ old('email') }}" />
@if ($errors->has('email'))
<span>
<strong>{{ $errors->first('email') }}</strong>
</span>
@endif
</div>
<div class="medium-2 columns"></div>
<div class="medium-2 columns"></div>
<div class="medium-8 columns">
<label class="medium-4 columns">Passwort</label>
<input type="password" name="password" />
@if ($errors->has('password'))
<span>
<strong>{{ $errors->first('password') }}</strong>
</span>
@endif
</div>
<div class="medium-2 columns"></div>
<div class="medium-2 columns"></div>
<div class="medium-8 medium-centered columns">
<button type="submit" class="button expand">Log In </button>
</div>
<div class="medium-2 columns"></div>
</div>
</form>
Please or to participate in this conversation.