@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Illuminate\Database\Eloquent\Model; |
| 6 | 6 | use Sagitarius29\LaravelSubscriptions\Contracts\PlanIntervalContract; |
| 7 | -use Sagitarius29\LaravelSubscriptions\Entities\PlanInterval; |
|
| 8 | 7 | |
| 9 | 8 | trait HasSingleInterval |
| 10 | 9 | { |
@@ -55,6 +55,9 @@ |
||
| 55 | 55 | return $subscription; |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | + /** |
|
| 59 | + * @return PlanIntervalContract |
|
| 60 | + */ |
|
| 58 | 61 | public function getActiveSubscription(): ?SubscriptionContact |
| 59 | 62 | { |
| 60 | 63 | return $this->subscriptions() |