From 03941707fedcf66afc671478356dd5a70101b522 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Wed, 2 Mar 2022 03:36:14 +0800 Subject: [PATCH] download billing documents --- .../Bookings/ControllersLogic/DownloadBookingDocumentLogic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Classes/Modules/Bookings/ControllersLogic/DownloadBookingDocumentLogic.php b/app/Classes/Modules/Bookings/ControllersLogic/DownloadBookingDocumentLogic.php index 9524c7df..1f4cb8cf 100644 --- a/app/Classes/Modules/Bookings/ControllersLogic/DownloadBookingDocumentLogic.php +++ b/app/Classes/Modules/Bookings/ControllersLogic/DownloadBookingDocumentLogic.php @@ -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().'/' . $zip_file; $zip = new ZipArchive(); if ($zip->open($attachment, ZIPARCHIVE::CREATE | ZipArchive::OVERWRITE)) {