Repeater Index
How can I get the index of the repeater item? I want to add an index or id to each item when it saves to the database
This is what I'm looking for, the index increments for each item in the repeater
6 Replies
Bumping this message
In ->dehydrateStateUsing() loop through the array and set the index. Then return the array.
How do I loop through the array? or how do I access the array?
dehydrateStateUsing(fn ($state) => loop state and return.
It’s injected into the callback.
Same as formatStateUsing or hydrateStateUsing.
That's what I needed. Thanks!