Laravel Vapor - debug reading from S3 storage

This commit is contained in:
Dillon Ngo
2024-04-26 17:06:25 +08:00
parent f44d0670ca
commit a76adf34a5
@@ -78,7 +78,7 @@ class BulkDownloadCustomerInvoicesLogic
$filePath = 'bulk_invoice/'.$zipFileName;
Storage::put($filePath, file_get_contents($zip_file), 's3');
return response(['src' => Storage::disk('s3')->get($filePath) ]);
return response()->download(Storage::disk('s3')->path($filePath));
} else {
return response()->json([