diff --git a/src/Traits/HasResetDate.php b/src/Traits/HasResetDate.php index 87209f8..dcbc800 100644 --- a/src/Traits/HasResetDate.php +++ b/src/Traits/HasResetDate.php @@ -23,6 +23,7 @@ public function getResetDate(?Carbon $dateFrom = null): Carbon do { $period = new Period($this->resettable_interval, $this->resettable_period, $dateFrom ?? $today); + $dateFrom = $period->getEndDate(); } while ($period->getEndDate()->lt($today)); return $period->getEndDate();