title: laravel 5.2 pagination error Method links does not exist
body: <p>I am trying to paginate my results from a database using a Laravel 5.2.31 app, but the pagination isn't working.</p>
  
  <p>When I use <code>{!! $users-&gt;links() !!}</code> in my view, I get an error 'Method links does not exist' .</p>
  
  <p>The same thing happens when I use <code>{!! $users-&gt;render() !!}</code></p>
  
  <p>My Controller:</p>
  
  <pre><code>public function index() {
      $users= User::orderBy('created_at', 'desc')-&gt;paginate(4); 
      return view('home', ['users' =&gt; $users]); 
  }
  </code></pre>
  
  <p>Any help?</p>