title: Paginate update request?
body: <p>Good morning , I try to simplify my difficulty , however any extra doubt I will be available to provide any code information ...</p>
  
  <p>I have a filter which which I do my research by certain values ​​and at the end have a paginate value:</p>
  
  <pre><code>    &lt;div class="form-group col-md-12 col-sm-12 col-xs-12"&gt;
      &lt;div class="col-md-2 col-sm-2 col-xs-2 form-label"&gt;
          {{Form::label('poder', 'Poder')}}
      &lt;/div&gt;
      &lt;div class="col-md-10 col-sm-10 col-xs-10"&gt;
          {{Form::select('poder', $poder, null, ['class' =&gt; 'form-control'])}}
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="form-group col-md-12 col-sm-12 col-xs-12"&gt;
      &lt;div class="col-md-2 col-sm-2 col-xs-2 form-label"&gt;
          {{Form::label('unidade', 'Unidade')}}
      &lt;/div&gt;
      &lt;div class="col-md-10 col-sm-10 col-xs-10"&gt;
          {{Form::select('unidade', $unidade, null, ['class' =&gt; 'form-control'])}}
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="form-group col-md-12 col-sm-12 col-xs-12"&gt;
              {{Form::label('perPage', 'Deseja filtrar quantos resultados por página?', ['class' =&gt; 'pagilabel'])}}
              {{Form::number('perPage', null, ['class' =&gt; 'paginumber', 'min' =&gt; 0])}}
              {{Form::submit('Localizar', ['class' =&gt; 'btn btn-info'])}}
   &lt;/div&gt;
  </code></pre>
  
  <p>In my controller have the Following:</p>
  
  <pre><code>    if ($request-&gt;poder) $query-&gt;where('orgao.poderId', $request-&gt;poder);
  if ($request-&gt;unidade) $query-&gt;where('unid.id', $request-&gt;unidade);
  $table = $query-&gt;paginate($request-&gt;perPage ? $request-&gt;perPage : 20);
  </code></pre>
  
  <p>Time to show the use of page like this:</p>
  
  <pre><code>&lt;div class="text-center"&gt;{{$table-&gt;appends(['perPage' =&gt; $perPage])-&gt;links()}}&lt;/div&gt;
  </code></pre>
  
  <p>Determined a default value of 20 results per page by paginate , everything works perfectly ....</p>
  
  <p>My difficulty is ... : When I send filter a certain result , to change the page by paginate the request is canceled and shows all records of my respective table , as if my filter was canceled and the updated page.</p>
  
  <p>My question is ... How do to send the same request made by the form every time you change the paginate page ?</p>
  
  <p>Thanks for helping.</p>