Infolist with Array example?

Hi,

I'm trying to use a repeatable entry with an array. But it doesn't seem to work. Is there an example on how this should look like?

Thank you!

    public function customerInfolist(Infolist $infolist): Infolist
    {
        return $infolist
            ->state([
                2 => [
                    'expected' => 12457,
                    'booked' => 12457,
                ],
                4 => [
                    'expected' => 12457,
                    'booked' => 12457,
                ],
            ])
            ->schema([
                    RepeatableEntry::make('customers')
                                   ->schema([
                                       TextEntry::make('expected')
                                                ->label('Expected'),
                                       TextEntry::make('booked')
                                                ->label('Booked'),
                                   ]),
                ]
            );
    }
Solution
GitHub
I'm trying to use RepeatableEntry with an array. The docs mention that this should work, but it doesn't for me. I didn't find any example on this, unfortunately. Here's my code: pub...
Was this page helpful?