Access Top Record within Repeaters

How do I access the top-record within repeaters? I tried
fn (Contract $record) => dd($record)
fn (Contract $record) => dd($record)
and
fn (Contract $ownerRecord) => dd($ownerRecord)
fn (Contract $ownerRecord) => dd($ownerRecord)
I've like
– top-record
- fieldset (relationship)
- repeater
- repeater
– top-record
- fieldset (relationship)
- repeater
- repeater
2 Replies
Dennis Koch
Dennis Kochβ€’15mo ago
You really want the actual record and not the current data? Try:
fn ($livewire) => $livewire->getRecord()
fn ($livewire) => $livewire->getRecord()
or
fn ($livewire) => $livewire->record
fn ($livewire) => $livewire->record
alexanderkroneis
alexanderkroneisOPβ€’15mo ago
Perfect, thank you! πŸ˜„ Yes, I need the actual record. I need relational data from the record πŸ™‚
Want results from more Discord servers?
Add your server