Skip to content

Commit 283b67e

Browse files
committed
Update Export.php
1 parent d340675 commit 283b67e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/Exports/Export.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class Export implements WithColumnFormatting, ShouldAutoSize, FromCollection, Wi
2121
public function __construct($request)
2222
{
2323
$this->collection = QueryBuilder::for(Object::class)
24+
->selectFields('created_at,updated_at,status,title,summary,body')
2425
->allowedSorts(['status_translated', 'title_translated'])
2526
->allowedFilters([
2627
AllowedFilter::custom('title', new FilterOr()),
@@ -33,10 +34,10 @@ public function map($model): array
3334
return [
3435
Date::dateTimeToExcel($model->created_at),
3536
Date::dateTimeToExcel($model->updated_at),
36-
$model->status,
37-
$model->title,
38-
$model->summary,
39-
$model->body,
37+
$model->status_translated,
38+
$model->title_translated,
39+
$model->summary_translated,
40+
$model->body_translated,
4041
];
4142
}
4243

0 commit comments

Comments
 (0)