title: How to Implement Pagination with Laravel Collections?
body: <p>As far as I know that Laravel pagination doesn't work with Laravel collections (Eloquent). For example: </p>
  
  <pre><code>$articles = Article::with('category')-&gt;where('status', 'submitted')-&gt;get();
  </code></pre>
  
  <p>I'm trying to make pagination with above code snipped but  <code>where('status', 'submitted')</code> is not working.</p>
  
  <p><strong>Controller</strong></p>
  
  <pre><code>$articles = Article::paginate(10);
  </code></pre>
  
  <p><strong>Blade</strong></p>
  
  <pre><code>@foreach($articles-&gt;with('category')-&gt;where('status', 'submitted') as $article)
      { ... }
      {{ $articles-&gt;links() }} 
  </code></pre>
  
  <p>I am getting an error. </p>