debug do email to vt

This commit is contained in:
omair saleh
2021-12-12 22:00:17 +08:00
parent 1e951929af
commit 2c77bcee65
+1 -1
View File
@@ -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())