Skip to main content
← Back to Table of Contents

Summary

Read-only table column for displaying users with the same visual language as UserSelect. Automatically switches between a rich single-user layout and an overlapping avatar stack for multiple users.

Basic usage

Single User (BelongsTo)

Multiple Users (BelongsToMany)


State format

State must be an Eloquent Model or a collection/array of models. UserColumn automatically handles eager-loading for direct relationship columns.

Configuration API

All methods accept Closure unless noted.

Real-world examples

Project Members Stack

Shared Preview Column


Performance

  • Auto Eager-Loading: Automatically calls with() for relationship columns.
  • Render Cache: Per-request caching of rendered HTML for identical stacks.
  • Lazy CSS: Stylesheets are loaded only when the column is rendered.

Playground

/admin/flex-fields-playground/user-column See Playground for setup.

CSS classes (reference)