From 3d92c0915f2ec23d9acaa4d2512511214619d799 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Wed, 2 Mar 2022 03:37:46 +0800 Subject: [PATCH] download billing documents --- .../Bookings/ControllersLogic/DownloadBookingDocumentLogic.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Classes/Modules/Bookings/ControllersLogic/DownloadBookingDocumentLogic.php b/app/Classes/Modules/Bookings/ControllersLogic/DownloadBookingDocumentLogic.php index 1f4cb8cf..ce4592fc 100644 --- a/app/Classes/Modules/Bookings/ControllersLogic/DownloadBookingDocumentLogic.php +++ b/app/Classes/Modules/Bookings/ControllersLogic/DownloadBookingDocumentLogic.php @@ -66,8 +66,7 @@ class DownloadBookingDocumentLogic } $zip->close(); -dd(File::exists($attachment)); - return Storage::download($attachment); + return Storage::exists($attachment); File::delete($attachment); exit;