Infolist RepeatableEntry with an Array
I am trying to create an Infolist RepeatableEntry using data from an array and it doesn't seem to generate any output..
The source array originates from a JSON column in the DB and is as follows:-
Based on the example repeater code here https://filamentphp.com/docs/3.x/infolists/entries/repeatable#overview it shows the list being built using
and using
Anybody help? Thanks!
The source array originates from a JSON column in the DB and is as follows:-
[
"15 minutes" => "17",
"30 minutes" => "26",
"45 minutes" => "42",
"60 minutes" => "52",
]Based on the example repeater code here https://filamentphp.com/docs/3.x/infolists/entries/repeatable#overview it shows the list being built using
TextEntry items each having a name/key. In this case there are no labels... so I tried re-formatting the array as follows:-[
["id" => "15 minutes","val" => "17"],
["id" =>"30 minutes" =>,"val" "26"],
["id" => "45 minutes" =>,"val" "42"],
["id" =>"60 minutes" =>,"val" "52"],
]and using
TextEntry::make('id') and TextEntry::make('val') but still nothing appears...Anybody help? Thanks!