Distinct Values in a relationship filter
Hello everyone,
i have a select filter with a relationship. How can i distinct my values?
I tried it that way but it does not work:
SelectFilter::make('nationality')
->label('Nationalität')
->relationship('ifatEntry', 'nationality', fn (Builder $query) => $query->distinct())
]);
}
Thanks.
0 Replies