PHP code example of filafly / filament-identity-column

1. Go to this page and download the library: Download filafly/filament-identity-column library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

filafly / filament-identity-column example snippets


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