mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-07-27 23:27:04 -04:00
Add casts to Subscription entity
Signed-off-by: objec <objecttothis@gmail.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user