diff --git a/src/Exports/Export.php b/src/Exports/Export.php index 667963f..1f10f20 100644 --- a/src/Exports/Export.php +++ b/src/Exports/Export.php @@ -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()), @@ -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', ]; }