mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-24 15:04:19 +00:00
Export pdf file from Laravel Vapor through S3 bucket
This commit is contained in:
+1
-1
@@ -62,7 +62,7 @@ class DownloadMockUpWhiteFormPdfLogic
|
||||
$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);
|
||||
|
||||
@@ -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