Merge branch 'dillon/34.8-jenkins-vapor' into vapor/development

This commit is contained in:
Dillon Ngo
2024-10-16 14:06:03 +08:00
@@ -67,6 +67,10 @@ class CreateInvoiceDocumentProcessor
Log::info('CreateInvoiceDocumentProcessor 1: ' . $currentFile);
$fileContent = Storage::disk('s3')->get($currentFile);
$filepath = storage_path('app/documents/' . $currentFile);
$directoryPath = dirname($filepath);
if (!file_exists($directoryPath)) {
mkdir($directoryPath, 0755, true);
}
file_put_contents($filepath, $fileContent);
// Storage::put('app/documents/' . $currentFile, $fileContent);
}