Add casts to Subscription entity

Signed-off-by: objec <objecttothis@gmail.com>
This commit is contained in:
objec committed 2026-04-21 12:15:44 +04:00
1 parent db180d134e
commit f819bc92f8
1 file changed
+7 -1
@@ -8,8 +8,14 @@ class Subscription extends Entity
{
protected $dates = ['created_at', 'updated_at', 'deleted_at'];
protected $casts = [
'id' => 'integer',
'customer_id' => 'integer',
'mailchimp_id' => 'string',
'status_id' => 'enum[App\Plugins\MailchimpPlugin\Enums\SubscriptionStatus]',
];
'created_at' => 'datetime',
'updated_at' => 'datetime',
'deleted_at' => 'datetime'
];
protected $attributes = [
'id' => null,