FilamentF
Filament2y ago
Abi

binding an array to a repeatable entry on infolists

I have the following data that is stored as json/array on the model

$data->family = [
    "names" => [
        "John Doe",
        "Jane Doe",
        "Justin Doe"
    ]
];


I am using the infolists and here is the code for it, but I am not sure what is the key I specific for the TextEntry on the RepeatableEntry schema. I cannot manipulate the data in the json as it is retrieved from an API. Any advice?

 return $infolist->record($this->data)
            ->schema([  
                RepeatableEntry::make('family.names')
                    ->schema([
                        TextEntry::make('?')
                    ])
            ])
Was this page helpful?