From 0220b95c8f6d9e563f1db302165eaaaac1ac31ef Mon Sep 17 00:00:00 2001 From: omair saleh Date: Sun, 12 Dec 2021 21:46:19 +0800 Subject: [PATCH] debug do email to vt --- app/Console/Commands/EmailDoToVTCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/EmailDoToVTCommand.php b/app/Console/Commands/EmailDoToVTCommand.php index 26ce5baf..cae3125d 100644 --- a/app/Console/Commands/EmailDoToVTCommand.php +++ b/app/Console/Commands/EmailDoToVTCommand.php @@ -63,7 +63,7 @@ class EmailDoToVTCommand extends Command Auth::login(User::findOrFail(1)); $zip_file = 'do_'.Carbon::yesterday()->format('Y_m_d').'.zip'; $attachment = storage_path().'/'.$zip_file; - log::debug(storage::get($attachment )); + $zip = new ZipArchive(); if ($zip->open($attachment, ZIPARCHIVE::CREATE | ZipArchive::OVERWRITE)) { $bookings = \App\Models\Booking::where('status', ApprovalStatus::COMPLETED)->whereDate('updated_at', Carbon::yesterday())