This commit is contained in:
baodev0
2026-10-05 09:30:24 +07:00
parent a1aeb88061
commit 1544629a1f
53 changed files with 1292 additions and 963 deletions
+7
View File
@@ -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');
}
}