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 = CardService::transformer((new Collection($rows)));
|
||||||
|
|
||||||
$rows->transform(function ($item) {
|
$rows->transform(function ($item) {
|
||||||
return array_only($item, [
|
return [
|
||||||
'id',
|
$item['id'],
|
||||||
'sim',
|
$item['sim'],
|
||||||
'imsi',
|
$item['imsi'],
|
||||||
'iccid',
|
$item['iccid'],
|
||||||
'carrier_operator',
|
$item['carrier_operator'],
|
||||||
'company_name',
|
$item['company_name'],
|
||||||
'package_name',
|
$item['package_name'],
|
||||||
'virtual_activated_at',
|
$item['virtual_activated_at'],
|
||||||
'status_name',
|
$item['status_name'],
|
||||||
'created_at',
|
$item['created_at'],
|
||||||
'service_start_at',
|
$item['service_start_at'],
|
||||||
'service_end_at',
|
$item['service_end_at'],
|
||||||
]);
|
];
|
||||||
});
|
});
|
||||||
|
|
||||||
return $rows;
|
return $rows;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user