Access parent $record in relation manager
Hi all
Does anyone know how to access the parent $record in a relation manager? I have an attach action that I need to scope using a parent attribute. Have tried this but $record is null:
5 Replies
$ownerRecord
Solution
Or
$livewire->ownerRecord
Filament docs has this mentioned.
I am using this in a project like this:
@Dennis Koch Thanks, that did the trick!
@Raziul Islam Tried that but it wasn't working for me.
$livewire->ownerRecord
worked though.okay, great