Laravel Vapor - Debug approve purchase order issue

This commit is contained in:
Dillon Ngo
2024-10-16 15:08:24 +08:00
parent 47bf3d0bcd
commit 039f030923
@@ -84,7 +84,7 @@ class CreateInvoiceDocumentProcessor
if($filesystemDriver === 's3'){
$finalTempPdfPath = storage_path('app/documents/temp.pdf');
$filePathForS3 = 'documents/temp/temp.pdf';
$filePathForS3 = 'temp/temp.pdf';
$fileContent = file_get_contents($finalTempPdfPath);
Log::info('CreateInvoiceDocumentProcessor 2 filePathForS3: ' . $filePathForS3);
Storage::disk('s3')->put($filePathForS3, $fileContent);