Closed schwemmer closed 1 year ago
Can you call withTrashed
like in issue you provided?
$item->getReacter()->reacterable()->withTrashed()->first()
@schwemmer another one way to do this:
\Cog\Laravel\Love\Reacter\Models\Reacter
model to your app namespacereacterable
method to fit your needsloveReacter
method in your User (Reacterable) model (it should return custom Reacter model)Thanks a lot @antonkomarev, the first way you mentioned above actually works great!
Can we close an issue?
Yes, thank you!
We have a bunch of soft deleted users and would like to still count their reactions (shown as "Deleted User"). The easiest way to do this is to change the relationship in the Reacter Model from this:
to this:
However, the class is final and can not be extended. It would be great if we could somehow pass a parameter to also get reactions from soft deleted users in a future release.
See also #189