Getting this error in login form. I am using the default login form provided by Laravel 5.2
I researched and found this error does show up from time to time for various people. Since the login form by default has the {!! csrf_field() !!} so I am not sure how to fix this whole thing.
From the error what I understand is that the session values don't match. But how do i fix this?
Just to give you a background of what caused the problem.
I created a custom middleware called UUID middleware. I then added it to all my routes. So the sequence of middleware was 'web', 'uuid'.
Its after this I started facing this issue. What I did to solve this was switch web and uuid middleware in my routes. I placed UUID first and web last.