PHP code example of fauzie811 / filament-list-entry
1. Go to this page and download the library: Download fauzie811/filament-list-entry 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/ */
fauzie811 / filament-list-entry example snippets
// use Fauzie811\FilamentListEntry\Infolists\Components\ListEntry;
public static function infolist(Infolist $infolist): Infolist
{
return $infolist
->schema([
ListEntry::make('users')
->label('Default with Icon')
->itemIcon('heroicon-o-check'),
]);
}
ListEntry::make('')
->label('Default with Icon')
->getStateUsing(['a', 'b', 'c'])
->itemIcon('heroicon-o-check'),