Skip to content

Image column

ImageColumn renders the cell value as an image URL — an avatar, a logo, a thumbnail.

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).
ImageColumn::make('logo')->size(24);
ImageColumn::make('photo')->circular()->size(48);

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