mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-28 17:03:59 +00:00
Export pdf file from Laravel Vapor through S3 bucket
This commit is contained in:
@@ -52,7 +52,7 @@ class GenerateCreditNotePdfLogic
|
||||
$filesystemDriver = Storage::getDefaultDriver();
|
||||
if($filesystemDriver === 's3'){
|
||||
$pdfContent = $pdf->output();
|
||||
AWSS3Helper::S3PDF($exportFileName, $pdfContent);
|
||||
return response([ 'src' => AWSS3Helper::S3PDF($exportFileName, $pdfContent) ]);
|
||||
}
|
||||
else{
|
||||
return $pdf->stream($exportFileName);
|
||||
|
||||
Reference in New Issue
Block a user