mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-22 14:04:01 +00:00
Merge branch 'dillon/34.8-jenkins-vapor' into vapor/development
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user