multicaret / laravel-acquaintances

This package gives Eloquent models the ability to manage friendships (with groups), followships along with Likes, favorites..etc.
https://laravel-news.com/manage-friendships-likes-and-more-with-the-acquaintances-laravel-package
MIT License
814 stars 72 forks source link

Observers not firing? #101

Open 1e4 opened 1 year ago

1e4 commented 1 year ago

I'm creating an observe for Multicaret\Acquaintances\Models\Friendship, the created event fires fine, but when listening for updated and deleted, neither event fires. Is it not possible to use Observers to watch for model changes?

1e4 commented 1 year ago

Looks like it's down to how models are updated - by design. Though I am curious as to why Friendship is never sent through to events and only ever get $recipient and sender