Skip to content

Commit a6f237c

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

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/Exports/Export.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ 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')
2524
->allowedSorts(['status_translated', 'title_translated'])
2625
->allowedFilters([
2726
AllowedFilter::custom('title', new FilterOr()),
@@ -44,12 +43,12 @@ public function map($model): array
4443
public function headings(): array
4544
{
4645
return [
47-
'created_at',
48-
'updated_at',
49-
'published',
50-
'title',
51-
'summary',
52-
'body',
46+
'Created at',
47+
'Updated at',
48+
'Published',
49+
'Title',
50+
'Summary',
51+
'Body',
5352
];
5453
}
5554

0 commit comments

Comments
 (0)