title: Cursor Pagination in PHP with a Column
body: <p>I am using <code>Laravel version 5.2</code>. As its having large amount of data, I am using cursor <code>pagiations</code> as below table having <code>primary id</code> and <code>name</code> fields</p>
  
  <pre><code>for page 1 -&gt; select * from table LIMIT 10
  
  For page 2 -&gt; select * from table where id &lt; $lastpagelastementID LIMIT 10
  </code></pre>
  
  <p>As the same way, if we sort by the <code>name</code> column, How can we handle this <code>cursor pagination</code>? <br>Is there any option to do this?</p>
  
  <p>we can use Laravel pagination as Explained in </p>
  
  <p><a href="https://stackoverflow.com/questions/30534867/laravel-pagination">Laravel Pagination</a></p>
  
  <p>But i need a Cursor Pagination as above. Can any one help me to find solutions?</p>