Level 1
I found the solution myself by "intense googling" :-). You can have a model setup for the pivot relationship you want to catch the events for and then setup an the corresponding observer. Works just fine.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi all,
when using the afterUpdate Hook to trigger some events/actions after a resource has been updated I found that this does not apply for attaching/ detaching other models to the Nova resource that I want to "hook in" for.
How could I set a hook for the event "another object has been attached/detached to a specific resource?
Have a nice day.
I found the solution myself by "intense googling" :-). You can have a model setup for the pivot relationship you want to catch the events for and then setup an the corresponding observer. Works just fine.
Please or to participate in this conversation.