Why not create a model on your pivot table and use your actual trait?
May 16, 2022
4
Level 4
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?
Please or to participate in this conversation.