samedi 27 mai 2017

Laravel redirect back csrf_token mismatch exception

As following the documentation for Laravel 5.4:

I am redirect user back if validation fails like this:

 return redirect('login')->withErrors('Email/password combination not recognised');

It takes me back to login route, shows me the form and when I hit submit again it shows csrf_token mismatch. Whether I use back() or redirect() same thing happens.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2rKanOi
via IFTTT

Aucun commentaire:

Enregistrer un commentaire