Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

iamadriandev's avatar

Log events on pivot table model on attach/detach/sync

Hello, I have a trait that logs all the events on the models like created, updated and so on, and I would like to have this functionality for the events on a pivot table that will log the attachment/detachment of a new record.

Does anyone has any idea how can I achieve this?

0 likes
4 replies
iamadriandev's avatar

@sr57 I've tried that, but it does not work. I've also created an observer and still does not register any events.

Please or to participate in this conversation.