Laravel 5 - Call to undefined method Illuminate\Database\Eloquent\Collection::Paginate()
<p>I'm having an error </p>

<blockquote>
  <p>Call to undefined method Illuminate\Database\Eloquent\Collection::Paginate()</p>
</blockquote>

<p>I've been doing this:</p>

<pre><code>public function index ()
{

    $articles = Article::latest('published_at')-&gt;published()-&gt;get()-&gt;paginate(5);
    $articlesLink = $articles-&gt;render();

    return view('articles.index', compact('articles', 'articlesLink'));
}
</code></pre>