download billing documents

This commit is contained in:
omair saleh
2022-03-02 03:35:37 +08:00
parent 52834cb9a2
commit 95b998ffc7
@@ -49,7 +49,7 @@ class DownloadBookingDocumentLogic
Auth::login(User::findOrFail(1));
$zip_file = $request->input('type').'.zip';
$attachment = storage_path() . '/documents/collection' . $zip_file;
$attachment = storage_path() . '/documents/collection/' . $zip_file;
$zip = new ZipArchive();
if ($zip->open($attachment, ZIPARCHIVE::CREATE | ZipArchive::OVERWRITE)) {