add command for sending do to vt

This commit is contained in:
omair saleh
2021-11-25 01:09:25 +08:00
parent f9256eafb4
commit de810249cd
+1 -1
View File
@@ -60,7 +60,7 @@ class EmailDoToVTCommand extends Command
{
Auth::login(User::findOrFail(1));
$zip_file = 'do_from_11_nov_to_23_nov.zip';
$attachment = storage_path('temp').'/'.$zip_file;
$attachment = storage_path().'/'.$zip_file;
$zip = new ZipArchive();
if ($zip->open($attachment, ZIPARCHIVE::CREATE | ZIPARCHIVE::OVERWRITE)) {