title: Laravel Pagination Appends Not Keeping Search Data
body: <p>I've been able to implement the pagination and appends() on my form and it does show the proper values in the url on page 2, though it doesn't actually bring the values back into the form/query, it simply resets the actual data being searched for and displays all.</p>
  
  <p>Here is my form code and the appends.</p>
  
  <pre><code>{{ Form::open(array('class' =&gt; 'stdform', 'method' =&gt; 'post', 'name' =&gt; 'all')) }}
  
  &lt;input type="text" name="srch_lname" class="input-large" 
  value="{{ Input::old('srch_lname', Session::get('srch_lname')) }}" /&gt;
  
  &lt;input type="text" name="srch_fname" class="input-large" 
  value="{{ Input::old('srch_fname', Session::get('srch_fname')) }}" /&gt;
  .
  .
  .
   &lt;?php echo $employees-&gt;appends(array("srch_lname" =&gt; Session::get('srch_lname'),
   "srch_fname" =&gt; Session::get('srch_fname') ))-&gt;links(); ?&gt;
  </code></pre>
  
  <p>And my <strong>Controller</strong></p>
  
  <pre><code>public function getIndex() {
  
      $srch_lname = Session::get('srch_lname');
      $srch_fname = Session::get('srch_fname');
  
  
      $employees = vEmployees::co()-&gt;restrictions()
          -&gt;where('lastname', 'LIKE', $srch_lname . '%')
          -&gt;where('firstname', 'LIKE', $srch_fname . '%')
          -&gt;paginate(10);
  
      return View::make('employees.index')
          -&gt;with('employees', $employees)
          -&gt;with('title', 'Users');
  }
  
  public function postIndex() {
  
      if (Input::has('btnSearch')) {
  
          return Redirect::to('/employees')-&gt;with('search', 1)
              -&gt;with('srch_lname', Input::get('srch_lname'))
              -&gt;with('srch_fname', Input::get('srch_fname'));
      else {
          return Redirect::to('/employees');
      }
  }
  </code></pre>
  
  <p><strong>Full Form</strong></p>
  
  <pre><code>{{ Form::open(array('class' =&gt; 'stdform', 'method' =&gt; 'post', 'name' =&gt; 'all')) }}
      &lt;div class="stepContainer"&gt;
          &lt;div class="formwiz content"&gt;
              &lt;h4 class="widgettitle"&gt;Search for an Employee&lt;/h4&gt;
              &lt;p&gt;
                  &lt;label&gt;Lastname&lt;/label&gt;
                  &lt;span class="field"&gt;
                    &lt;input type="text" name="srch_lname" class="input-large" 
                      value="{{ Input::old('srch_lname', Session::get('srch_lname')) }}" /&gt;
                  &lt;/span&gt;
              &lt;/p&gt;
              &lt;p&gt;
                  &lt;label&gt;Firstname&lt;/label&gt;
                  &lt;span class="field"&gt;
                    &lt;input type="text" name="srch_fname" class="input-large" 
                      value="{{ Input::old('srch_fname', Session::get('srch_fname')) }}" /&gt;
                  &lt;/span&gt;
              &lt;/p&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="actionBar" style="text-align: right;"&gt;
          &lt;button class="btn btn-primary" name="btnSearch" value="1"&gt;
              Search for Employee(s)
          &lt;/button&gt;
      &lt;/div&gt;
  {{ Form::close() }}
  </code></pre>