repeatable entry edit modal
I have a parent record that is CourseEnrolment. It has a student who at the same time can have multiple parents.
CourseEnrolment->student
student->tutors
I have an infolist with a repeater entry to show info from the tutors, and I put an action button to edit each tutor in a modal. but in the action, the $this->record, $livewire->record properties are CourseEnrolment(parent record) not the repeater entry record itself. How to get it?
4 Replies
Solution
AH, I just have to add $record at the closure, not $this->record.
so sorry to jump on this. I am in a similar boat but on a TableRepeater on an edit page. Can you share your code at all? I am struggling to pass the repeater record into the action to populate a model form so I can edit the full record data. many thanks
When I try to access using $record I only get the parent record from the Edit page and not the relationship record from the repeater
Many thanks. i'll give this is a whirl