title: How to do a form with steps in Laravel?
body: <p>I'm trying to create a "Step-by-step" form with Laravel. The trouble I'm having is how to let the user go "back" and edit the previously submitted part of the form.</p>
  
  <p>I'm doing the regular validation stuff, here's an example of the form field:</p>
  
  <p><code>{{ Form::text('title', Input::old('title') }}</code></p>
  
  <p>Then, if the form for that particular step passes validation, this will be saved in a session as an array and the user will be taken to the next part of the form.</p>
  
  <p>Want I want to have is a "back" button on each step where they can go back to the previous step an change it. The problem is that I have <code>Input::old()</code> for the value parameter of the input. </p>
  
  <p>One thing I could do is assign a variable like "current" and set that to the session for that particular step, so my syntax for the inputs would look like this:</p>
  
  <p><code>{{ Form::text('title', (!empty($current)) ? $current['title'] : Input::old('title')) }}</code></p>
  
  <p>Is there a better way of doing this?</p>