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 63567d9 commit 9ee55b5Copy full SHA for 9ee55b5
src/Models/Subscription.php
@@ -113,6 +113,7 @@ public function renew(?Carbon $expirationDate = null): self
113
114
$this->update([
115
'expired_at' => $expirationDate,
116
+ 'grace_days_ended_at' => $expirationDate->addDays($this->plan->grace_days),
117
]);
118
119
event(new SubscriptionRenewed($this));
0 commit comments