Stack column
StackColumn groups several columns into one cell, stacking them vertically — useful for showing a
name and email together, or a title with a subtitle. Pass the child columns to ->columns().
StackColumn::make('identity')->label('User')->columns([ TextColumn::make('name')->sortable(), TextColumn::make('email')->copyable(),]);
TextColumn::make('role');- actionsLabel:"Actions"
- bulkActions:[]
- data:[{"email":"[email protected]","name":"Ada Lovelace","role":"Admin"},{"email":"[email protected]","name":"Alan Turing","role":"Editor"}]
- 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":2,"total":2}
- resizableColumns:null
- resizeIndicator:false
- state:{"filters":[],"page":1,"perPage":25,"sorts":[],"tableFilters":[]}
- striped:null
- badge:null
- copyable:false
- date:null
- link:null
- multiple:null
Each child is a normal column, so its display modifiers still apply — the example makes the name sortable and the email copyable. The stack’s own key labels the header; the children read their own row fields.
StackColumn::make('product')->label('Product')->columns([ TextColumn::make('title'), TextColumn::make('sku')->copyable(),]);