FilamentF
Filament16mo ago
Jakub

how to access current state of repeater item?

https://filamentphp.com/docs/3.x/infolists/entries/repeatable

On the docs it has example of

RepeatableEntry::make('comments')
    ->schema([
        TextEntry::make('author.name'),
        TextEntry::make('title'),
        TextEntry::make('content')
            ->columnSpan(2),
    ])


If I wanted to mutate the title for example, how would I do that?

When i do ->state and than dd record, it gives me the parent information

So in this case if a post has comments, it shows me post.

I want to access the specific comment?
Was this page helpful?