© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•12mo ago•
10 replies
lolmaheen

Get the index of current repeater item

for my case i want to get the index of my repeater item
as i have two repeaters
platforms
products

when i add a platform
i want to set the product for the platform at the same index in products repeater

i dont want to iterate over the platforms repeater array and get the index!

i also want to remove the product if the platform is removed but afterStateUpdated hook is not called on delete of repeater items

i am using AW TableRepeater

@awcodes
Solution
Table repeater just uses filaments repeater under the hood. But I’m afraid you are going to have to iterate since the array keys for repeaters are UUIDs. Unless you extend the TableRepeater and provide your own hydration and dehydration.
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

Get Index of Repeater
FilamentFFilament / ❓┊help
14mo ago
Repeater item index access?
FilamentFFilament / ❓┊help
2y ago
Get the index of a repeater?
FilamentFFilament / ❓┊help
17mo ago
Get current item position in repeater or uuid in repeater mutateRelationshipDataBeforeCreateUsing
FilamentFFilament / ❓┊help
17mo ago