Skip to content

Boolean column

BooleanColumn renders a check or cross instead of the raw value. It is sortable and filters as a boolean — yes / no / any.

TextColumn::make('name')->label('Name');
BooleanColumn::make('featured')->label('Featured')->sortable()->filterable();
BooleanColumn::make('archived')->label('Archived');

The column reads the row value as truthy or falsy, so a 1/0, true/false, or a cast boolean all render correctly.

BooleanColumn::make('is_active')->label('Active')->filterable();