Add casts to Subscription entity

Signed-off-by: objec <objecttothis@gmail.com>
This commit is contained in:
objec
2026-04-21 12:15:44 +04:00
parent db180d134e
commit f819bc92f8

View File

@@ -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,