Skip to content

Commit

Permalink
Update Export.php
Browse files Browse the repository at this point in the history
  • Loading branch information
sdebacker committed Oct 9, 2020
1 parent 2fb1d28 commit e77d433
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/Exports/Export.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ class Export implements WithColumnFormatting, ShouldAutoSize, FromCollection, Wi
public function __construct($request)
{
$this->collection = QueryBuilder::for(News::class)
->selectFields('created_at,updated_at,status,date,title,summary,body')
->allowedSorts(['status_translated', 'date', 'title_translated'])
->allowedFilters([
AllowedFilter::custom('title', new FilterOr()),
Expand All @@ -45,13 +44,13 @@ public function map($model): array
public function headings(): array
{
return [
'created_at',
'updated_at',
'published',
'date',
'title',
'summary',
'body',
'Created at',
'Updated at',
'Published',
'Date',
'Title',
'Summary',
'Body',
];
}

Expand Down

0 comments on commit e77d433

Please sign in to comment.