Wednesday, March 1, 2017

Laravel login TokenMismatchException in VerifyCsrfToken.php line 46

I know this question has been asked many times and I've tried everyone of them to fix my issue:

I use Laravel auth/login to login to my admin section. It's all worked perfectly well until recently when I added some new routes/views to this section. Now when I try to login, I get the TokenMismatchException in VerifyCsrfToken.php line 46 error.

I have tried php artisan key:generate and I also have the line <input type="hidden" name="_token" value="" /> in my form.

I've scratched my head and I simply don't understand what the issue is and I'm hoping someone can help.

I'm using Laravel 5




via danjswade

Advertisement