Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Filament Identity Column Laravel Package

filafly/filament-identity-column

View on GitHub
Deep Wiki
Context7

Basic Usage

use Filafly\IdentityColumn\Tables\Columns\IdentityColumn;
use Filafly\IdentityColumn\Infolists\Components\IdentityEntry;

// Table column
IdentityColumn::make('name')
    ->avatar('avatar_url')
    ->primary('name')
    ->primaryUrl(fn ($record) => route('users.show', $record))
    ->secondary('email')
    ->secondaryUrl('profile_url', openInNewTab: true)
    ->size('md');

// Infolist entry
IdentityEntry::make('name')
    ->avatar('avatar_url')
    ->primary('name')
    ->secondary('email')
    ->size('md');

Requirements

  • PHP 8.2+
  • Filament 4.x or 5.x
  • Laravel (package auto-discovery enabled)

Installation

composer require filafly/filament-identity-column
php artisan filament:assets

Avatar

  • avatar(string|Closure $value)
    • Absolute URL, root-relative path, attribute path, or Closure.
  • avatarShape('square'|'rounded'|'circular'|Closure)
  • squareAvatar() / roundedAvatar() / circularAvatar()
  • avatarSize(string|Closure $cssSize)
    • CSS size (e.g., 28px, 2rem).

Primary

  • primary(string|Closure $value)
    • Falls back to the column/entry state when not set.
  • primaryUrl(string|Closure|null $url, bool|Closure $openInNewTab = false)
    • Suppressed if a wrapper ->url() is set on the column/entry.

Secondary

  • secondary(string|Closure $value)
  • secondaryUrl(string|Closure|null $url, bool|Closure $openInNewTab = false)
    • Suppressed if a wrapper ->url() is set on the column/entry.

Sizing

  • size('sm'|'md'|'lg'|TextSize|Closure|null) (inherited from Filament)
  • Defaults: text md; avatar size derives from visual size when avatarSize() is not set.
  • Text scale by size: sm (0.875/0.75rem), md (1/0.75rem), lg (1.125/0.875rem).

Notes

  • Strings passed to methods are resolved from the record via data_get() when they look like attribute paths.

License

MIT

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor