formatStateUsing() and a nullable boolean column
I have a nullable boolean column in a table like:
In my Filament table, I'm trying to display 'Pending' for the null value and 'Accepted' or 'Rejected' correspondingly for
I do not get any
will not dump anything at all, but works as expected for the non-null values.
same with
Any insight would be appreciated.
In my Filament table, I'm trying to display 'Pending' for the null value and 'Accepted' or 'Rejected' correspondingly for
true and falseI do not get any
$state or Model $record for the null values at all.will not dump anything at all, but works as expected for the non-null values.
same with
Any insight would be appreciated.
Solution
Try
getStateUsing(). null values are filteres and there is not formatStateUsing() for them