Repeater access current $record
Hi guys,
I can not figure out a way to access current record outside of repeater schema:
Inside schema $record works outside of it it does not. Thank you for havinga look!
4 Replies
Also $state returns all of the repeater records and not the current one
Try
$livewire->record
or ->getRecord()
No it gets only the parent record. Actually I do not think it is possible as Reapeter a component that has array of fields in it. So for instance ->deletable() applies to the whole component and not the displayed field. I would probably need to change the json to normal relation to have this functionality
Hello, did you find a solution?