Monday, February 22, 2016

Token Mismatch Bugs

Might occur based on the following two conditions

Missing token when submitting the form. Add the following file on each form submission
<input type="hidden" name="_token" value="{{ csrf_token() }}">

Or

Messed up with authentication sessions (Adding social log in or others after the basic login process)
Delete all the files in framework/sessions

Or session messed up with domain

In the session.php file
'domain' => env('DOMAIN', null),

and in the .env file, set domain to your domain