title: What is the correct way to persist input through a confirmation page and into a submission page in Laravel?
body: <p>I've been working on migrating several of our forms to Laravel, but there's one last step I'm not entirely sure on how to go about. I have a form that does an Insert into a database, but instead of just having 2 pages--the form and the submission page--I have 3: the form, a confirmation and a submission page.</p>
  
  <p>Here is what I have at the moment:</p>
  
  <p>Routes:</p>
  
  <pre><code>Route::any('application/housing-form', array('as'=&gt;'application.form', 'uses'=&gt;'ApplicationController@form'));
  Route::post('application/confirmation', array('as'=&gt;'application.confirmation', 'uses'=&gt;'ApplicationController@confirmation'));
  Route::post('application/submit', array('as'=&gt;'application.submit', 'uses'=&gt;'ApplicationController@submit'));
  </code></pre>
  
  <p>ApplicationController:</p>
  
  <pre><code>public function form()
  {
      $application = new Application;
      return View::make('application/form')-&gt;with(array('application'=&gt;$application));
  }
  public function confirmation()
  {
      $input = Input::all();
      //More here?
      return View::make('application/confirmation')-&gt;with(array('input'=&gt;$input));
  }
  public function submit() {
      $input = Input::all();
      DB::table('application')-&gt;insert(
          array(
              &lt;field1&gt;     =&gt; $input('field1')
              ...
               )
      );
      return View::make('application/submit');
  }
  </code></pre>
  
  <p>Views:</p>
  
  <pre><code>//form
  {{ Form::model($application, array('route'=&gt;'application.confirmation')
      //inputs
      {{ Form::submit('Continue') }}
  {{ Form::close() }}
  
  //confirmation
  {{ Form::open(array('route'=&gt;'application.form') }}
      {{ Form::submit('Back to my information') }}
  {{ Form::close() }}
  {{ Form::open(array('route'=&gt;'application.submit') }}
      {{ Form::submit('Submit') }}
  {{ Form::close() }}
  
  //submission
  &lt;p&gt;Thank you for your submission!&lt;/p&gt;
  </code></pre>
  
  <p>What I am unsure about is how to persist the data from the form through the confirmation page and into the submission page. From what I can tell, I can see a few options:</p>
  
  <ol>
  <li>Reflash all of the input</li>
  <li>Use a hidden field (or fields) to send the information</li>
  <li>Insert the information into the database in the confirmation page and just do an update with an in-between query with the information.</li>
  </ol>
  
  <p>I'm pretty sure it would be the first one: reflashing the data. But if so, I'm not sure where you're actually supposed to call Session::flash or Session::reflash. Or how many times I need to do it to get it through all of the requests. Any suggestions on how to go about that, or how to streamline the rest of the form would be greatly appreciated.</p>
  
  <p>One extra note as well is that this particular form deals with a large number of input fields (around 60). That's part of why I want to avoid having to request each individual field to a minimum.</p>