my problem is that my form validation fails but the method $this->validate($request, $rules, $messages)
wont redirect -> back()
instead it redirects to the root page /
.
Is there any possibility to change redirect when validation fails?
my problem is that my form validation fails but the method $this->validate($request, $rules, $messages)
wont redirect -> back()
instead it redirects to the root page /
.
Is there any possibility to change redirect when validation fails?
I ran into the same issue yesterday, the solution is to make your own validator instance: