title: Primevue Datatable with Laravel not working
body: <p>I am trying to integrate Datatable with Primevue and Laravel. If I load the content directly from a Json file it works for me but if I do it with a get from Mysql it doesn't work for me...</p>
  <p>Laravel Controller</p>
  <pre><code>class MagentoPedidosController extends Controller
  {
      /**
       * Display a listing of the resource.
       *
       * @param \Illuminate\Http\Request $request
       * @return \Illuminate\Http\Response
       */
      public function index(Request $request)
      {
          $pedidos = MagentoPedidos::whereYear('created_at', Carbon::now()-&gt;year)-&gt;orderBy('entity_id', 'DESC')-&gt;get();
          return response()-&gt;json([
              'customers' =&gt; $pedidos,
              'totalRecords' =&gt; $pedidos-&gt;count()
          ], 200);
      }
  </code></pre>
  <p>JS get Clientes</p>
  <pre><code>export default class magentoPedidos {
  getPedidos(params) { 
  //return axios.get('/pedidos/lista').then(d =&gt; d.data); -&gt; Without Lazy
  
  const queryParams = params ? Object.keys(params).map(k =&gt; encodeURIComponent(k) + '=' + encodeURIComponent(params[k])).join('&amp;') : '';
  return fetch('/pedidos/lista?' + queryParams).then(res =&gt; res.json())
  }
  }
  </code></pre>
  <p>Vue Component</p>
  <pre><code>created() {
              this.magentoPedidos = new magentoPedidos()
          },
          mounted() {
              this.loading = true;
  
              this.lazyParams = {
                  first: 0,
                  rows: this.$refs.dt.rows,
                  sortField: null,
                  sortOrder: null,
                  filters: this.filters
              };
  
              this.loadLazyData();
  
          },
          methods: {
              loadLazyData() {
                  this.loading = true;
  
                  setTimeout(() =&gt; {
                      this.magentoPedidos.getPedidos(
                          {lazyEvent: JSON.stringify( this.lazyParams )})
                              .then(data =&gt; {
                                  this.customers = data.customers;
                                  this.totalRecords = data.totalRecords;
                                  this.loading = false;
                          }
                      );
                  }, Math.random() * 1000 + 250);
              },
  </code></pre>
  <p>Let's see if you can help me since more than 70,000 columns are loaded and it is unfeasible to work without lazy.</p>