Overview
TheBooleanFilter class provides a checkbox or toggle input for filtering by boolean values. It applies a WHERE clause with a boolean comparison.
Creating a BooleanFilter
Available Methods
label
key
Overrides the internal key used for the filter (defaults to field name with dots replaced by underscores).
Custom key identifier
default
initialValue
Sets an initial value that is pre-applied when the table first loads.
The initial value to apply (true or false)
filter
Provides a custom query callback to override the default filter behavior.
A closure that receives
Builder $query and mixed $value and returns the modified BuildergroupClass
labelClass
inputClass
Default Behavior
By default,BooleanFilter applies a WHERE clause with boolean comparison: