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); }
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.