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');- actionsLabel:"Actions"
- bulkActions:[]
- data:[{"archived":false,"featured":true,"name":"Desk Lamp"},{"archived":false,"featured":false,"name":"Office Chair"},{"archived":true,"featured":true,"name":"Monitor Stand"}]
- emptyLabel:"No results"
- endpoint:null
- filters:[]
- layout:null
- lazy:null
- pagination:{"currentPage":null,"from":1,"hasMore":false,"lastPage":null,"mode":"none","nextPage":null,"perPage":null,"to":3,"total":3}
- resizableColumns:null
- resizeIndicator:false
- state:{"filters":[],"page":1,"perPage":25,"sorts":[],"tableFilters":[]}
- striped:null
- badge:null
- copyable:false
- date:null
- link:null
- multiple:null
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();