add command for sending do to vt

This commit is contained in:
omair saleh
2021-11-25 01:02:02 +08:00
parent 1d96fc9ced
commit 3f784daf82
+2 -2
View File
@@ -74,7 +74,7 @@ class EmailDoToVTCommand extends Command
$file = $booking->documents()->where('document_type', DocumentType::SUPPLIER_DELIVER_ORDER)->first()->files()->first();
$zip->addFile(Storage::disk('documents')->path($file->file->file_info->original->file), $booking->created_at->format('d_m_Y').'_'.$booking->marking.'.pdf');
}
dd($zip);
$zip->close();
$attachment = storage_path().'/'.$zip_file;
@@ -88,7 +88,7 @@ class EmailDoToVTCommand extends Command
$message->attach($attachment);
});
// File::delete($attachment);
File::delete($attachment);
echo 'success';