I want to export the big data (>10K) when I clicked the 'export button'. I tried to use the Yagra Datatable, however it only can export the current page for pagination. so i tried the query export Maatwebsite. What I did is when 'export' button is clicked, the result will be passed to the excel function and it will export the data into my local machine. My controller is like below:
public function filterQuery(Request $request)
{
$dataGender = $request->dataGender;
$ethnicity = $request->ethnicity;
What should I fix so that when I clicked the button, the query will export the result into CSV?