diff --git a/app/Console/Commands/EmailDoToVTCommand.php b/app/Console/Commands/EmailDoToVTCommand.php index a8891ef7..26ce5baf 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('app/public').'/'.$zip_file; - + $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())