Skip to content

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');

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(),
]);