title: Laravel Eloquent pagination control page number with route
body: <p><code>Articles::paginate(10)</code>
  This code will return the 1st 10 articles, what if I want to return the next 10 articles with route? For example the url <code>mypage.com/articles/2</code> will return the 2nd 10 articles from database.<br>
  This is so far what I have:<br> 
  <strong>Route:</strong><br></p>
  
  <pre><code>Route::get('articles/{page_number}', 'Controller@getArticles')
  </code></pre>
  
  <p><strong>Controller:</strong><br></p>
  
  <pre><code>public function getArticles($page_num)
  {
      $perPage = 10;
      Articles::getPaginator()-&gt;setCurrentPage($page_num);
      $articles = Articles::paginate($perPage);
      return $articles;
  }
  </code></pre>
  
  <p>Can I have something like <code>Articles::pageNumber($page_number)-&gt;paginate($perPage);</code>?</p>