update
This commit is contained in:
@@ -18,6 +18,7 @@ class MailCampaign extends Model
|
||||
'template_id',
|
||||
'subject',
|
||||
'message',
|
||||
'variables',
|
||||
'cc',
|
||||
'bcc',
|
||||
'recipient_type',
|
||||
@@ -30,6 +31,7 @@ class MailCampaign extends Model
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'variables' => 'array',
|
||||
'total_recipients' => 'integer',
|
||||
'sent_count' => 'integer',
|
||||
'failed_count' => 'integer',
|
||||
@@ -52,4 +54,9 @@ class MailCampaign extends Model
|
||||
{
|
||||
return $this->belongsTo(Template::class, 'template_id');
|
||||
}
|
||||
|
||||
public function creator()
|
||||
{
|
||||
return $this->belongsTo(User::class, 'created_by');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user