TernaryFilter not working with date column?

I've got this same filter working on a varchar column, but on a date column with:

                TernaryFilter::make('dob')
                    ->label('Date of Birth?')
                    ->trueLabel('Has Date of Birth')
                    ->falseLabel('Missing Date of Birth?')
                    ->queries(
                        true: fn (Builder $query): Builder => $query->whereNotNull('dob'),
                        false: fn (Builder $query): Builder => $query->whereNull('dob'),
                    )
                    ->nullable(),


it never gets applied and so it doesn't run.
Was this page helpful?