setDefaultSorting(['id' => 'DESC']); } /** * @param SelectQuery $query * * @return void */ public function configureQuery(SelectQuery $query) { $query ->cols([ 'doe.id', 'doe.datum', 'doe.timestamp', 'doe.status', ]) ->from('datevconnect_online_export AS doe'); } /** * @param ColumnCollection $columns * * @return void */ public function configureColumns(ColumnCollection $columns) { $columns->add(Column::hidden('id', 'id')); $columns->add(Column::searchable('datum', 'Zeitraum')); $columns->add(Column::searchable('timestamp', 'Zeitstempel')); $columns->add(Column::searchable('status', 'Status')); } /** * @param FeatureCollection $features * * @return void */ public function configureFeatures(FeatureCollection $features) { parent::configureFeatures($features); $features->remove(StateSaveFeature::class); } }