mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-22 14:04:06 +00:00
Export pdf file from Laravel Vapor through S3 bucket (code sync from exchange-2.0)
This commit is contained in:
@@ -27,7 +27,7 @@ class ExportParcelPostcodesController
|
||||
$exportFileName = 'parcel-postcodes.xls';
|
||||
$filesystemDriver = Storage::getDefaultDriver();
|
||||
if($filesystemDriver === 's3'){
|
||||
return response([ 'src' => AWSS3Helper::S3($exportFileName, $exportsPendingArrangementDeliveryList) ]);
|
||||
return response([ 'src' => AWSS3Helper::S3Exportable($exportFileName, $exportsPendingArrangementDeliveryList) ]);
|
||||
}
|
||||
else{
|
||||
$response = $exportsPendingArrangementDeliveryList->download($exportFileName, Excel::XLS, ['Content-Type' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet']);
|
||||
|
||||
Reference in New Issue
Block a user