Laravel Vapor - Debug approve purchase order issue

This commit is contained in:
Dillon Ngo
2024-10-16 13:49:27 +08:00
parent 7c90589fac
commit 2cf51d172e
@@ -66,7 +66,9 @@ class CreateInvoiceDocumentProcessor
if($filesystemDriver === 's3'){
Log::info('CreateInvoiceDocumentProcessor 1: ' . $currentFile);
$fileContent = Storage::disk('s3')->get($currentFile);
Storage::put('app/documents/' . $currentFile, $fileContent);
$filepath = storage_path('app/documents/' . $currentFile);
file_put_contents($filepath, $fileContent);
// Storage::put('app/documents/' . $currentFile, $fileContent);
}
$localFilePath = storage_path('app/documents/' . $currentFile);