From cacdb588b27caba7058e65cf8cf818769bc54abf Mon Sep 17 00:00:00 2001 From: omair saleh Date: Sun, 12 Dec 2021 21:21:59 +0800 Subject: [PATCH] debug do email to vt --- app/Console/Commands/EmailDoToVTCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/EmailDoToVTCommand.php b/app/Console/Commands/EmailDoToVTCommand.php index f30df67b..249ef4b7 100644 --- a/app/Console/Commands/EmailDoToVTCommand.php +++ b/app/Console/Commands/EmailDoToVTCommand.php @@ -62,8 +62,8 @@ 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($attachment); + $attachment = $zip_file; + $zip = new ZipArchive(); if ($zip->open($attachment, ZIPARCHIVE::CREATE | ZipArchive::OVERWRITE)) { $bookings = \App\Models\Booking::where('status', ApprovalStatus::COMPLETED)->whereDate('updated_at', Carbon::yesterday())