thamibn's avatar

Handle big data Laravel and Vuejs

Hi, can someone please help me, I need a proper way to handle big data like millions of records, I want to populate a frontend table which has filtering, sorting and pagination on it, I want all this features to handled by laravel. I am using vuejs as frontend. Please advise on how can I approach this in a proper and best way. Thanks

0 likes
1 reply
Tray2's avatar

Something like

function index($q = null)
{
  return Record::where('field', 'like', '%' . $q, '%')->paginate(50)->get();
}

Should do the trick

1 like

Please or to participate in this conversation.