2, 'xl' => 3, ]; protected function getTableQuery(): Builder|Relation { return User::query(); } protected function getTableHeading(): string|Htmlable|Closure|null { return null; } protected function getTableColumns(): array { return [ Tables\Columns\ViewColumn::make('name') ->view('filament.components.users.avatar-column') ->label('Name') ->sortable() ->grow(false), Tables\Columns\TextColumn::make('owned_companies') ->label('Companies') ->weight('semibold') ->getStateUsing(static fn ($record) => $record->ownedCompanies->count()), ]; } }