Skip to content

Image column

ImageColumn renders the cell value as an image URL — an avatar, a logo, a thumbnail. Clicking a cell opens the full-size image in a lightbox, the same overlay the Image component uses.

ImageColumn::make('avatar')->label('')->circular()->size(32);
TextColumn::make('name')->label('Name');
TextColumn::make('role')->label('Role');
  • ->circular() clips the image to a circle — an avatar.
  • ->size(40) sets the rendered size in pixels (square).
  • ->previewable(false) turns the click-to-zoom lightbox off for the column.
ImageColumn::make('logo')->size(24);
ImageColumn::make('photo')->circular()->size(48);
ImageColumn::make('avatar')->previewable(false);

Give the column an empty ->label('') to drop its header, which reads better for a leading avatar.