We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5664442 commit 9500c53Copy full SHA for 9500c53
src/Concerns/Subscribable.php
@@ -31,6 +31,7 @@ public function isSubscribedBy(Model $user): bool
31
if (! is_a($user, config('subscribe.models.user'))) {
32
return false;
33
}
34
+
35
$subscribersLoaded = $this->relationLoaded('subscribers');
36
37
if ($subscribersLoaded) {
src/Concerns/Subscriber.php
@@ -73,6 +73,7 @@ public function unsubscribe(Model $object): bool
73
if ($hasNotSubscribed) {
74
return true;
75
76
77
$subscriberSubscriptionsLoaded = $this->relationLoaded('subscriberSubscriptions');
78
if ($subscriberSubscriptionsLoaded) {
79
$this->unsetRelation('subscriberSubscriptions');
0 commit comments