Skip to content

Commit

Permalink
Merge pull request #19 from DanielSpravtsev/patch-1
Browse files Browse the repository at this point in the history
feat: Disable relation integer casting to allow UUIDs with custom Models
  • Loading branch information
mckenziearts authored Oct 31, 2024
2 parents f2612e9 + f30e14d commit 98fd039
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
2 changes: 0 additions & 2 deletions src/Models/Feature.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
* Laravelcm\Subscriptions\Models\PlanFeature.
*
* @property int $id
* @property int $plan_id
* @property string $slug
* @property array $title
* @property array $description
Expand Down Expand Up @@ -71,7 +70,6 @@ class Feature extends Model implements Sortable
];

protected $casts = [
'plan_id' => 'integer',
'slug' => 'string',
'value' => 'string',
'resettable_period' => 'integer',
Expand Down
4 changes: 0 additions & 4 deletions src/Models/Subscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
* Laravelcm\Subscriptions\Models\Subscription.
*
* @property int $id
* @property int $subscriber_id
* @property string $subscriber_type
* @property int $plan_id
* @property string $slug
* @property array $title
* @property array $description
Expand Down Expand Up @@ -86,9 +84,7 @@ class Subscription extends Model
];

protected $casts = [
'subscriber_id' => 'integer',
'subscriber_type' => 'string',
'plan_id' => 'integer',
'slug' => 'string',
'trial_ends_at' => 'datetime',
'starts_at' => 'datetime',
Expand Down
4 changes: 0 additions & 4 deletions src/Models/SubscriptionUsage.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
* Laravelcm\Subscriptions\Models\SubscriptionUsage.
*
* @property int $id
* @property int $subscription_id
* @property int $feature_id
* @property int $used
* @property Carbon|null $valid_until
* @property Carbon|null $created_at
Expand Down Expand Up @@ -49,8 +47,6 @@ class SubscriptionUsage extends Model
];

protected $casts = [
'subscription_id' => 'integer',
'feature_id' => 'integer',
'used' => 'integer',
'valid_until' => 'datetime',
'deleted_at' => 'datetime',
Expand Down

0 comments on commit 98fd039

Please sign in to comment.