title: laravel4 pagination over ajax
body: <p>i have a function in my controller that's supposed to return me a paginated set of stuff, i do it exactly same way as in all other controller(<strong>where it works perfectly</strong>) but i get back an <strong>empty object</strong>.
  here's function code:</p>
  
  <pre><code>public static function getQuotes(){
      $quotes = Quote::orderBy('created_at','desc')-&gt;paginate(15);
      $links = $quotes-&gt;links();
      return json_encode(array( 'quotes' =&gt; $quotes, 'links' =&gt; $links ));        
  }
  </code></pre>
  
  <p>here's the ajax request:</p>
  
  <pre><code>$.ajax({
       type: "POST",
       url: url,
       data: {datagram: datagram},
       success: function(data){
         console.log(data);    //debug
         catEditor.quoteStuff(data);
         typeof data == 'string' ? tools.flash(data) : 0;
       },
       error: function(xhr, status, err) {
         console.log(err.error+' '+xhr.responseText+' '+status);
       }
  });
  </code></pre>