@@ -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() |
@@ -5,11 +5,11 @@ |
||
| 5 | 5 | use Carbon\Carbon; |
| 6 | 6 | use Illuminate\Database\Eloquent\Model; |
| 7 | 7 | use Illuminate\Database\Eloquent\Relations\MorphMany; |
| 8 | -use Sagitarius29\LaravelSubscriptions\Entities\PlanInterval; |
|
| 9 | -use Sagitarius29\LaravelSubscriptions\Entities\Subscription; |
|
| 10 | 8 | use Sagitarius29\LaravelSubscriptions\Contracts\PlanContract; |
| 11 | -use Sagitarius29\LaravelSubscriptions\Contracts\SubscriptionContact; |
|
| 12 | 9 | use Sagitarius29\LaravelSubscriptions\Contracts\PlanIntervalContract; |
| 10 | +use Sagitarius29\LaravelSubscriptions\Contracts\SubscriptionContact; |
|
| 11 | +use Sagitarius29\LaravelSubscriptions\Entities\PlanInterval; |
|
| 12 | +use Sagitarius29\LaravelSubscriptions\Entities\Subscription; |
|
| 13 | 13 | use Sagitarius29\LaravelSubscriptions\Exceptions\SubscriptionErrorException; |
| 14 | 14 | |
| 15 | 15 | trait HasSubscriptions |
@@ -3,8 +3,8 @@ |
||
| 3 | 3 | namespace Sagitarius29\LaravelSubscriptions\Entities; |
| 4 | 4 | |
| 5 | 5 | use Carbon\Carbon; |
| 6 | -use Illuminate\Database\Eloquent\Model; |
|
| 7 | 6 | use Illuminate\Database\Eloquent\Builder; |
| 7 | +use Illuminate\Database\Eloquent\Model; |
|
| 8 | 8 | use Illuminate\Database\Eloquent\Relations\BelongsTo; |
| 9 | 9 | use Sagitarius29\LaravelSubscriptions\Contracts\PlanContract; |
| 10 | 10 | use Sagitarius29\LaravelSubscriptions\Contracts\SubscriptionContact; |
@@ -2,10 +2,10 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Sagitarius29\LaravelSubscriptions; |
| 4 | 4 | |
| 5 | -use Illuminate\Database\Eloquent\Model; |
|
| 6 | 5 | use Illuminate\Database\Eloquent\Builder; |
| 7 | -use Sagitarius29\LaravelSubscriptions\Contracts\PlanContract; |
|
| 6 | +use Illuminate\Database\Eloquent\Model; |
|
| 8 | 7 | use Sagitarius29\LaravelSubscriptions\Contracts\GroupContract; |
| 8 | +use Sagitarius29\LaravelSubscriptions\Contracts\PlanContract; |
|
| 9 | 9 | use Sagitarius29\LaravelSubscriptions\Contracts\PlanFeatureContract; |
| 10 | 10 | use Sagitarius29\LaravelSubscriptions\Exceptions\PlanErrorException; |
| 11 | 11 | |