title: Call to undefined method Illuminate\Database\Query\Builder::links()
body: <p>whats up ?
  I have a little problem with Laravel Paginator.</p>
  
  <p>I built the function using order by and paginator, but I'm getting the error message "Call to undefined method Illuminate \ Database \ Query \ Builder :: links () (View: C: \ wamp \ www \ laravel \ app \ views \ frontend \ premios.blade.php). "</p>
  
  <p>============= My Function ==============</p>
  
  <pre><code>public function premios()
  {
  $this-&gt;layout-&gt;content = View::make('frontend.premios')-&gt;with('premiostexto',PremiosTexto::all()) -&gt;with('premios', Premios::orderBy('ordem', 'ASC')-&gt;paginate(5));
  }
  </code></pre>
  
  <p>==========My View============</p>
  
  <pre><code>@foreach($premios as $premios)
      &lt;span class="tituloPremio"&gt;{{$premios-&gt;titulo}}&lt;/span&gt;
      &lt;span class="dataPremio"&gt;{{$premios-&gt;data}}&lt;/span&gt;
  @endforeach
  
      {{ $premios-&gt;links() }}
  </code></pre>
  
  <p>I tried putting "$premios->links()" inside and outside the foreach.Without pagination everything works good</p>