© 2026 Hedgehog Software, LLC
SelectFilter::make('event') ->options(fn (Table $table) => $table->getQuery()->pluck('event', 'event')->unique()->sort()) ->searchable() ->preload(), SelectFilter::make('user') ->options(fn (Table $table) => $table->getQuery()->pluck('actor_id', 'actor_id')->unique()->sort()) ->getOptionLabelFromRecordUsing(function (int $actor) { $user = User::query()->where('id', $actor)?->username; if (!$user instanceof User) { return 'System'; } return $user->username; }) ->searchable() ->preload(),
getOptionLabelFromRecordUsing()
SelectFilter::make('user') ->relationship('user', 'username') ->searchable() ->preload(),