Welcome Guest, Not a member yet? Register   Sign In
redirect back withInput requries session otherwise old() empty
#2

Is the form and validation in same controller method? In which case you could end up in endless loop - validation fails, same POST data is sent back, so it'll try to re-validate, repeat...

I keep form and validation on same method, so if input fails validation, it just continues with putting together HTML form, but knows to now insert errors too.
Reply


Messages In This Thread
RE: redirect back withInput requries session otherwise old() empty - by Pertti - 10-11-2018, 01:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB