© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•16mo ago•
3 replies
Rolland

Repeater with existing data

Forms\Components\Section::make('Request Items')
                    ->schema([
                        Forms\Components\Repeater::make('requestHasItems')
                            ->relationship()
                            ->schema([
                                Forms\Components\Select::make('item_id')
                                    ->relationship('item', 'name')
                                    ->searchable()
                                    ->native(false)
                                    ->preload()
                                    ->required(),
                                Forms\Components\TextInput::make('quantity')
                                    ->numeric()
                                    ->default(1)
                                    ->required(),
                            ])
                            ->columns(2),
                    ]),
Forms\Components\Section::make('Request Items')
                    ->schema([
                        Forms\Components\Repeater::make('requestHasItems')
                            ->relationship()
                            ->schema([
                                Forms\Components\Select::make('item_id')
                                    ->relationship('item', 'name')
                                    ->searchable()
                                    ->native(false)
                                    ->preload()
                                    ->required(),
                                Forms\Components\TextInput::make('quantity')
                                    ->numeric()
                                    ->default(1)
                                    ->required(),
                            ])
                            ->columns(2),
                    ]),


I have this repeater to add items to a request. I can add the items to the request_has_items table, but I don't know how to display them in the repeater. I kindly need some guidance.
Solution
nvm, the code i have suddenly working. 😅
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

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

how to populate a repeater with existing data?
FilamentFFilament / ❓┊help
2y ago
Repeater relations meta data not merged with existing and overwrites other meta data.
FilamentFFilament / ❓┊help
3y ago
Refreshing repeater data
FilamentFFilament / ❓┊help
6mo ago