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.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire