TernaryFilter not working with date column?
I've got this same filter working on a varchar column, but on a date column with:
it never gets applied and so it doesn't run.
it never gets applied and so it doesn't run.
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(),