Last night I ran my project. It was well enough. Then I went to sleep. No one touched my PC. I woke up. Ran the project again. And bingo! TokenMismatchException in VerifyCsrfToken.php
I've faced this kinda problem before too.i didn't touched login or registration page. But suddenly they start showing this kinda error.
Can anyone provide any solve our at least the reason why it's happening?
That's weird. If you are using Blade templating, do confirm you have this inside the form {{ csrf_field() }}. Make sure it is in between the HTML form tags. It can be anywhere `
Have you upgraded your Laravel application at all?
Since version 5.2 (correct me if I am wrong on the version) but the CSRF Middleware is added automatically to the web routes and therefore it is added twice; and I remember back then that it caused those issues.
Please provide what version of Laravel you're using and also your routes file, and the route that you're hitting that is causing the problem so we may assist you further.