Getting the attached and parent record in a relation manager hook
I know there is a way, I just cannot seem to directly figure out which one.
In the hooks above, how can I get the attached record and the record it was attached to?
6 Replies
$record
is attached / created, $livewire->ownerRecord
is the owner$record I believe I cannot get when attaching (User $record works fine for create after).
I am doing this for now:
hello, quick question: can i use the after() method for detachaction as well?
doesnt seems to work for me
but for attach it does work, except i use create() instead of delete()
which bit doesnt work?
its okay, i figured it out, some mistakes from my part
i should be using before() and $record
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View