withCount(['variations','offers']); return $this->buildQuery($model); } protected function getColumns() { return [ Column::make('value')->title('Valeur'), Column::make('variations_count')->title('nb variations')->searchable(false)->class('text-right'), Column::make('offers_count')->title('nb offres')->searchable(false)->class('text-right'), $this->makeColumnButtons(), ]; } }