laravel-likeable icon indicating copy to clipboard operation
laravel-likeable copied to clipboard

Cascades

Open RustyDev opened this issue 9 years ago • 2 comments

I've noticed a few things about cascading when deleting various models.

If a user likes a post and either the user or the post is deleted, the likes aren't deleted as well and the counts don't update.

RustyDev avatar Jan 11 '16 17:01 RustyDev

It would be definitely nice if this is in the package out-of-the-box. But I think it relies more on the application logic.

@RustyDev you could easily add an observer to update the likes data in that scenario. But of course it would be even better if you could send a PR with such functionality :)

JesusLeon avatar Feb 07 '16 14:02 JesusLeon

I haven't had to add a config file to this library yet, but if I add this feature I'll want to put in a config file for it. To make the cascade optional.

rtconner avatar Feb 07 '16 18:02 rtconner