© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•4mo ago•
1 reply
SuperUserDo

Repeater Item Label

Hi fellas,

Is there a way to set default item labels for Repeater, for example when i am on create form i have 3 default items, I need to set it be id of current it example: Sector {$id} from repeater item.

And when i add automataclly to be Sector i++..


 Repeater::make('antenna_mounts')
                ->label(__('global.ssr.antenna_mounts_sectors'))
                ->columns(1)
                ->grid(3)
                ->columnSpanFull()
                ->schema([
                    Hidden::make('id')
                        ->live()
                        ->dehydrated(true),
                ])
                ->itemLabel(fn (array $state): ?string => __('global.ssr.sector').$state['id'] ?? null)
                ->cloneable()
                ->collapsible()
                ->defaultItems(count: 3)
                ->reorderable(condition: true),
 Repeater::make('antenna_mounts')
                ->label(__('global.ssr.antenna_mounts_sectors'))
                ->columns(1)
                ->grid(3)
                ->columnSpanFull()
                ->schema([
                    Hidden::make('id')
                        ->live()
                        ->dehydrated(true),
                ])
                ->itemLabel(fn (array $state): ?string => __('global.ssr.sector').$state['id'] ?? null)
                ->cloneable()
                ->collapsible()
                ->defaultItems(count: 3)
                ->reorderable(condition: true),
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

Item label for repeater
FilamentFFilament / ❓┊help
3y ago
Repeater item id
FilamentFFilament / ❓┊help
2y ago
Delete Item in Repeater
FilamentFFilament / ❓┊help
10mo ago
Repeater item index access?
FilamentFFilament / ❓┊help
2y ago