transform
This commit is contained in:
parent
9f3931ec60
commit
d31f8a3177
@ -39,20 +39,20 @@ class CardExport extends AbstractExport implements FromQuery, WithHeadings, With
|
||||
$rows = CardService::transformer((new Collection($rows)));
|
||||
|
||||
$rows->transform(function ($item) {
|
||||
return array_only($item, [
|
||||
'id',
|
||||
'sim',
|
||||
'imsi',
|
||||
'iccid',
|
||||
'carrier_operator',
|
||||
'company_name',
|
||||
'package_name',
|
||||
'virtual_activated_at',
|
||||
'status_name',
|
||||
'created_at',
|
||||
'service_start_at',
|
||||
'service_end_at',
|
||||
]);
|
||||
return [
|
||||
$item['id'],
|
||||
$item['sim'],
|
||||
$item['imsi'],
|
||||
$item['iccid'],
|
||||
$item['carrier_operator'],
|
||||
$item['company_name'],
|
||||
$item['package_name'],
|
||||
$item['virtual_activated_at'],
|
||||
$item['status_name'],
|
||||
$item['created_at'],
|
||||
$item['service_start_at'],
|
||||
$item['service_end_at'],
|
||||
];
|
||||
});
|
||||
|
||||
return $rows;
|
||||
|
Loading…
x
Reference in New Issue
Block a user