@yigitozmen Any redirects are performed using GET. Your forms should be rendered as GET methods, and the data submitted as a POST request. When you’ve persisted the form submission’s data, you should then redirect to the next “step” using GET too.
For example:
Route::get('step-1', 'StepOneController@showForm');
Route::post('step-1', 'StepOneController@handle');
Route::get('step-2', 'StepTwoController@showForm');
Route::post('step-2', 'StepTwoController@handle');
class StepOneController extends Controller
{
public function showForm()
{
return view('forms.step-1');
}
public function handle(Request $request)
{
// Validate data
// Persist data ready for displaying step 2
return redirect('step-2');
}
}
This way, if a user submits incorrect data for any step, you can just redirect them back and present the form again.