Filter for unique values is not working

Hi there! I tried to create a filter for a table, and it didn't work:

Filter::make('is_unique')
    ->label('Unique')
    ->query(
        fn (Builder $query): Builder => $query->select()->groupBy('phone')
    )
Was this page helpful?