From 7e8c196048ad72234965b2bb3089fe425674f1ce Mon Sep 17 00:00:00 2001 From: omair saleh Date: Wed, 2 Mar 2022 03:20:24 +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 51b1bcad..90470987 100644 --- a/app/Classes/Modules/Bookings/ControllersLogic/DownloadBookingDocumentLogic.php +++ b/app/Classes/Modules/Bookings/ControllersLogic/DownloadBookingDocumentLogic.php @@ -50,7 +50,7 @@ class DownloadBookingDocumentLogic Auth::login(User::findOrFail(1)); $zip_file = $request->input('type').'.zip'; $attachment = Storage::disk('documents')->path('collection/'.$zip_file); -dd($attachment); +dd(storage_path($attachment)); $zip = new ZipArchive(); if ($zip->open($attachment, ZIPARCHIVE::CREATE | ZipArchive::OVERWRITE)) {