primefaces / primevue

Next Generation Vue UI Component Library
https://primevue.org
MIT License
9.92k stars 1.19k forks source link

Primevue Datatable with Laravel not working... #2912

Closed chrisklein00 closed 2 years ago

chrisklein00 commented 2 years ago

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...

Laravel Controller public function index(Request $request) { $clientes = Cliente::get(); return response()->json($clientes); }

JS get Clientes getHistorial(params) { //return axios.get('/historial/lista').then(d => d.data); -> Without Lazy const queryParams = params ? Object.keys(params).map(k => encodeURIComponent(k) + '=' + encodeURIComponent(params[k])).join('&') : ''; return fetch('/clientes/lista?' + queryParams).then(res => res.json()) }

Let's see if you can help me since more than 70,000 columns are loaded and it is unfeasible to work without lazy.

chrisklein00 commented 2 years ago

https://github.com/savannabits/primevue-datatables