Skip to content

Commit 9500c53

Browse files
authored
Auto Release (#66)
* Auto Release * Rector Rectify * Switch action on push to tag Co-authored-by: zingimmick <zingimmick@users.noreply.github.com>
1 parent 5664442 commit 9500c53

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/Concerns/Subscribable.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public function isSubscribedBy(Model $user): bool
3131
if (! is_a($user, config('subscribe.models.user'))) {
3232
return false;
3333
}
34+
3435
$subscribersLoaded = $this->relationLoaded('subscribers');
3536

3637
if ($subscribersLoaded) {

src/Concerns/Subscriber.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ public function unsubscribe(Model $object): bool
7373
if ($hasNotSubscribed) {
7474
return true;
7575
}
76+
7677
$subscriberSubscriptionsLoaded = $this->relationLoaded('subscriberSubscriptions');
7778
if ($subscriberSubscriptionsLoaded) {
7879
$this->unsetRelation('subscriberSubscriptions');

0 commit comments

Comments
 (0)