title: Why Laravel pagination show same page?
body: <p>I have a blog module in my laravel with multiple categories.In other categories pagination works just fine but with this category method links() always show the first page.This is my code:</p>
  
  <pre><code>  $page = Categoriepage::where('identifiant', 'orientation')-&gt;first();
  
      $idArticle = Articleliaison::select(array('idArticle'))-&gt;where('idPage',$page-&gt;id)-&gt;pluck('idArticle');
  
      $articles = Article::whereIn('id',$idArticle)-&gt;where('status','enable')-&gt;orderby('created_at','desc')-&gt;get()-&gt;take(6);
  
      $links = Article::whereIn('id',$idArticle)-&gt;where('status','enable')-&gt;orderby('created_at','desc')-&gt;paginate(6);
  
      return View::make('pages.orientation')-&gt;with('articles',$articles)-&gt;with('links',$links);
  </code></pre>
  
  <p>and in my view:</p>
  
  <pre><code>  &lt;?php $i = 1 ?&gt;
  
                  &lt;div class="masonry "&gt;
  
                  @foreach($articles as $article)
  
                      @include('components.article-or')
  
                  &lt;?php $i++ ?&gt;
  
                  @endforeach()
  
                  &lt;/div&gt;
  
  
                  &lt;div class="text-center" style="margin-top: 5%"&gt;
  
                      {{ $links-&gt;links() }}
  
                  &lt;/div&gt;
  </code></pre>