Hitori
Hitori
FFilament
Created by Hitori on 2/23/2024 in #❓┊help
How to render JSON in an Infolists?
I was reading the documentation and came across a KeyValueEntry field, however, my laravel application is complaining saying that KeyValueEntry doesn't exist within Filament\Infolists\Components
public static function infolist(Infolist $infolist): Infolist
{
return $infolist
->schema([
Infolists\Components\TextEntry::make('name'),
Infolists\Components\IconEntry::make('active')
->boolean(),
Infolists\Components\TextEntry::make('slug'),
Infolists\Components\TextEntry::make('type'),
Infolists\Components\TextEntry::make('created_at')
->dateTime(),
Infolists\Components\TextEntry::make('updated_at')
->dateTime(),
Infolists\Components\KeyValueEntry::make('settings')
]);
}
public static function infolist(Infolist $infolist): Infolist
{
return $infolist
->schema([
Infolists\Components\TextEntry::make('name'),
Infolists\Components\IconEntry::make('active')
->boolean(),
Infolists\Components\TextEntry::make('slug'),
Infolists\Components\TextEntry::make('type'),
Infolists\Components\TextEntry::make('created_at')
->dateTime(),
Infolists\Components\TextEntry::make('updated_at')
->dateTime(),
Infolists\Components\KeyValueEntry::make('settings')
]);
}
Here's the code I'm dealing with currently
9 replies