I have huge amount of data in my DB. But when I try to export data to pdf in Laravel only 2 pages are downloading.
$members = DB::table('members')->where('id_card_issued',0)->get();
$pdf = PDF::loadView('admin.myPDF', compact('members'));
return $pdf->download('id_card.pdf');
I want all the data to be downloaded. But now only getting last 2 data in my database table
Are you trying to do to download large files from the server, I have changed the below settings in php.ini file in mine to do so :
Upload_max_filesize - 1500 M
Max_input_time - 1000
Memory_limit - 640M
Max_execution_time - 1800
Post_max_size - 2000 M
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.