ardent icon indicating copy to clipboard operation
ardent copied to clipboard

Hooks on relationships

Open JeroenVanOort opened this issue 11 years ago • 0 comments

I'd like to see hooks on relationships, similar to the current hooks on models.

Like when you attach a Book to an Author, I'd like to see some event fired so I can send an email to the Author telling him his book has been added to his account for example. Getting this to work too with the sync function would be a great improvement!

The one thing I don't know is how to implement this. Where would one declare this event? Is it an Ardent or Laravel thing?

Please let me know what you think!

JeroenVanOort avatar Sep 24 '14 08:09 JeroenVanOort