Problem showing array in Infolist using RepeatableEntry
I have Product table with 'syn' field which takes multiple entries. I am using repeater for this in form. Now, I am using View file where I want to see all my 'syn'. I am using below code in Infolist.
RepeatableEntry::make('syn')->schema([
TextEntry::make('syn') )]. But it gives me list of empty entries. So if I have 11 entries, then it gives 11 empty blocks. I tried using RepeatableEntry::make('$this->product->syn') or RepeatableEntry::make('$this->product') both gave error. RepeatableEntry::make('syn') does not give error and also lists exact blocks for entries. But why data not populated. Please help. In my migration syn is json type and in Product model I have already cast it array. Form or Table view is great.
RepeatableEntry::make('syn')->schema([
TextEntry::make('syn') )]. But it gives me list of empty entries. So if I have 11 entries, then it gives 11 empty blocks. I tried using RepeatableEntry::make('$this->product->syn') or RepeatableEntry::make('$this->product') both gave error. RepeatableEntry::make('syn') does not give error and also lists exact blocks for entries. But why data not populated. Please help. In my migration syn is json type and in Product model I have already cast it array. Form or Table view is great.