diff --git a/src/Exports/Export.php b/src/Exports/Export.php index cd99d15..f66ed19 100644 --- a/src/Exports/Export.php +++ b/src/Exports/Export.php @@ -21,6 +21,7 @@ class Export implements WithColumnFormatting, ShouldAutoSize, FromCollection, Wi public function __construct($request) { $this->collection = QueryBuilder::for(Place::class) + ->selectFields($request->input('fields.places')) ->allowedSorts(['id', 'status_translated', 'title_translated']) ->allowedFilters([ AllowedFilter::custom('title', new FilterOr()),