download billing documents

This commit is contained in:
omair saleh
2022-03-02 04:12:45 +08:00
parent a0efee21a8
commit 446e372345
@@ -47,9 +47,7 @@ class DownloadBookingDocumentLogic
$zip->addFile(Storage::disk('documents')->path($file->file->file_info->original->file), $booking->created_at->format('d_m_Y') . '_' . $booking->marking . '.pdf');
}
if ($zip->close() === false) {
exit("Error creating ZIP file");
};
$zip->close();
readfile($attachment);
unlink($attachment);