From 04eca9c88ea6eec84c79ed2947dfa1160be54b77 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Sun, 12 Dec 2021 22:01:34 +0800 Subject: [PATCH] debug do email to vt --- app/Console/Commands/EmailDoToVTCommand.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Console/Commands/EmailDoToVTCommand.php b/app/Console/Commands/EmailDoToVTCommand.php index cae3125d..85c1ecc9 100644 --- a/app/Console/Commands/EmailDoToVTCommand.php +++ b/app/Console/Commands/EmailDoToVTCommand.php @@ -66,6 +66,7 @@ class EmailDoToVTCommand extends Command $zip = new ZipArchive(); if ($zip->open($attachment, ZIPARCHIVE::CREATE | ZipArchive::OVERWRITE)) { + echo 'yes'; $bookings = \App\Models\Booking::where('status', ApprovalStatus::COMPLETED)->whereDate('updated_at', Carbon::yesterday()) ->whereHas('transactions', function ($query){ return $query->where('type', TransactionType::BILL)->where('issuer', 2);