© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
6 replies
Prodex

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'),
                                   ]),
                ]
            );
    }
    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
https://github.com/filamentphp/filament/discussions/8753#discussioncomment-7123690
GitHub
Infolist with RepeatableEntry and Array · filamentphp filament · Di...
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...
Infolist with RepeatableEntry and Array · filamentphp filament · Di...
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Infolist RepeatableEntry with an Array
FilamentFFilament / ❓┊help
9mo ago
Infolist RepeatableEntry with an Array
FilamentFFilament / ❓┊help
3y ago
Infolist Builder... Array ?
FilamentFFilament / ❓┊help
3y ago
Fill modal infolist from array
FilamentFFilament / ❓┊help
2y ago