I'm trying to redirect back two pages and have their input filled back in.
This is my sites flow:
1.Land on checkout page and fill it out. Hit submit.
2.Land on pin verification page where the customer enters their phone number to receive a pin code. They press submit.
3.They land on page where they enter the pin code that was sent to them.
They have 10 attempts to enter their pin code on the 3rd page. If it's incorrect after the 10th time I want to redirect back to the first page.
I know how to redirect back one page I can do
\Redirect::back()->withInput()->withErrors();
but how can I redirect back two pages with an error displayed and the form filled out with the original values?
How can I do this?