mercredi 21 avril 2021

How to export excel data in chunk using Laravel?

Excel::create($file_name, function($excel) use ($app_data,$permit_type) {
    $excel->sheet('Sheet 1', function($sheet) use ($app_data,$permit_type) {
        $sheet->loadView('/reports/_export')->with([
            'vehicle' => $app_data,
        ]);
    });
})->export();

In above code I am simply export data in excel sheet which is working fine but due to large amount of data I am unable to export. So, I want to export this data in chunks but I don't have any idea that how to setup chunk in my code? Please help me.

Thank You



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2RUoFe4
via IFTTT

Aucun commentaire:

Enregistrer un commentaire