title: How to use pagination in laravel 5?
body: <p>am trying to port my laravel4 application to laravel 5 . In the previous version i could use the following method for generating pagination urls .</p>
  
  <p><em>In controller</em>:</p>
  
  <pre><code>$this-&gt;data['pages']= Page::whereIn('area_id', $suburbs)-&gt;where('score','&gt;','0')-&gt;orderBy('score','desc')-&gt;paginate(12);
  </code></pre>
  
  <p>and after sharing the data array with the view, i could user </p>
  
  <p><em>In views</em> :</p>
  
  <pre><code>{{$pages-&gt;links()}}
  </code></pre>
  
  <p>In laravel 5 the doing that results in following error</p>
  
  <pre><code>ErrorException in AbstractPaginator.php line 445:
  call_user_func_array() expects parameter 1 to be a valid callback, class 'Illuminate\Support\Collection' does not have a method 'links'
  </code></pre>
  
  <p>not sure what i am missing here, can somebody help ?</p>