Laravel Vapor - Debug approve purchase order issue

This commit is contained in:
Dillon Ngo
2024-10-16 14:47:25 +08:00
parent 9f020cd409
commit 47bf3d0bcd
@@ -72,7 +72,6 @@ class CreateInvoiceDocumentProcessor
mkdir($directoryPath, 0755, true);
}
file_put_contents($filepath, $fileContent);
// Storage::put('app/documents/' . $currentFile, $fileContent);
}
$localFilePath = storage_path('app/documents/' . $currentFile);
@@ -87,7 +86,7 @@ class CreateInvoiceDocumentProcessor
$finalTempPdfPath = storage_path('app/documents/temp.pdf');
$filePathForS3 = 'documents/temp/temp.pdf';
$fileContent = file_get_contents($finalTempPdfPath);
Log::info('CreateInvoiceDocumentProcessor 2: ' . $filePathForS3);
Log::info('CreateInvoiceDocumentProcessor 2 filePathForS3: ' . $filePathForS3);
Storage::disk('s3')->put($filePathForS3, $fileContent);
}
}