I have multi step form, everything works fine expect one thing.
When i will submit form in step-1, site is going redirect me to step-2. I have everything in step-2 what i submited in step-1 so it works, but when i go back with arrows to step-1 in e.g Chrome, session disapears.
@MUNAZZIL - This doesn't solve my problem.
Is it any solution for this? Why my session disappears when I go back from Step2 to Step1?
I can see on laravel debugbar in step2 that session exists with data but when i go back to step 1 debugbar doesn't show data from session.
As others have pointed out, you need to store the data somewhere. If you refresh a page it will lose the POST data as it will not be doing a POST request anymore. I am assuming this as the method is named "postStep1". Alternatively you can encode the posted data and add it to your URL which you can retrieve even with a GET request.