title: How to refresh the laravel pagination when using ajax filtering data
body: <p>I am using custom filter to filter my data in a div content</p>
  
  <pre><code>&lt;div id="refresh"&gt;
  &lt;div/&gt;
  
  // pagination 
  {{ $lists-&gt;links() }}
  </code></pre>
  
  <p>It will displayed all data when display the site.</p>
  
  <pre><code>Previous | 1 | 2 | 3 | Next
  </code></pre>
  
  <p>After i filter data, the content will be refreshed but the pagination still remain unchanged.</p>
  
  <pre><code>Previous | 1 | 2 | 3 | Next
  </code></pre>
  
  <p>It should be 2 pages, since data filtered only 2 pages but it shows 3 pages.</p>
  
  <pre><code>Previous | 1 | 2 | Next
  </code></pre>
  
  <p>I am using ajax to filter the data by refreshing the content data. It works fine but just the pagination do not update. Any solution to solve this issue?</p>