title: datatable pagination in laravel
body: <p>I am using laravel 5.0
  I am also using datatable jquery plugin to display grid.</p>
  
  <p>Controller mehtod</p>
  
  <pre><code> public function index() {
  
      $jobs = \App\Job::orderBy('created_at', 'DESC')-&gt;limit(1000)-&gt;get();
  
      return View::make('jobs.index', ['jobs' =&gt; $jobs]);
  }
  </code></pre>
  
  <p>The issue:
  Right now I hard-coded the ->limit(1000) to 1000 jobs in datatable grid to display
  it but i have more then 1000 records to display.</p>
  
  <p>What I want?
  I want to display 500 records with grid and then 500 records.
  I am not sure if there is any call back data-table plugin function available?
  I need a dynamic way to load next 500</p>
  
  <p>NOTE:
  I am not willing to us this solution of scrolling 
  <a href="https://datatables.net/extensions/scroller/examples/initialisation/server-side_processing.html" rel="nofollow noreferrer">https://datatables.net/extensions/scroller/examples/initialisation/server-side_processing.html</a></p>