Skip to content

Commit 98fd039

Browse files
authored
Merge pull request #19 from DanielSpravtsev/patch-1
feat: Disable relation integer casting to allow UUIDs with custom Models
2 parents f2612e9 + f30e14d commit 98fd039

File tree

3 files changed

+0
-10
lines changed

3 files changed

+0
-10
lines changed

src/Models/Feature.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
* Laravelcm\Subscriptions\Models\PlanFeature.
2222
*
2323
* @property int $id
24-
* @property int $plan_id
2524
* @property string $slug
2625
* @property array $title
2726
* @property array $description
@@ -71,7 +70,6 @@ class Feature extends Model implements Sortable
7170
];
7271

7372
protected $casts = [
74-
'plan_id' => 'integer',
7573
'slug' => 'string',
7674
'value' => 'string',
7775
'resettable_period' => 'integer',

src/Models/Subscription.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@
2323
* Laravelcm\Subscriptions\Models\Subscription.
2424
*
2525
* @property int $id
26-
* @property int $subscriber_id
2726
* @property string $subscriber_type
28-
* @property int $plan_id
2927
* @property string $slug
3028
* @property array $title
3129
* @property array $description
@@ -86,9 +84,7 @@ class Subscription extends Model
8684
];
8785

8886
protected $casts = [
89-
'subscriber_id' => 'integer',
9087
'subscriber_type' => 'string',
91-
'plan_id' => 'integer',
9288
'slug' => 'string',
9389
'trial_ends_at' => 'datetime',
9490
'starts_at' => 'datetime',

src/Models/SubscriptionUsage.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
* Laravelcm\Subscriptions\Models\SubscriptionUsage.
1616
*
1717
* @property int $id
18-
* @property int $subscription_id
19-
* @property int $feature_id
2018
* @property int $used
2119
* @property Carbon|null $valid_until
2220
* @property Carbon|null $created_at
@@ -49,8 +47,6 @@ class SubscriptionUsage extends Model
4947
];
5048

5149
protected $casts = [
52-
'subscription_id' => 'integer',
53-
'feature_id' => 'integer',
5450
'used' => 'integer',
5551
'valid_until' => 'datetime',
5652
'deleted_at' => 'datetime',

0 commit comments

Comments
 (0)