download billing documents

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