mirror of
https://gitlab.com/uldvstar/exchange-2.0.git
synced 2026-08-19 04:24:16 +00:00
download billing documents
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user