feat: Implement mail campaign feature with CRUD operations and email sending capabilities

This commit is contained in:
baodev0
2026-08-21 16:57:32 +07:00
parent 8d0a5322ea
commit eec2c5906e
11 changed files with 593 additions and 3 deletions
+6
View File
@@ -12,6 +12,7 @@ class Mail extends Model
protected $table = 'mail';
protected $fillable = [
'campaign_id',
'template_id',
'subject',
'to',
@@ -42,4 +43,9 @@ class Mail extends Model
{
return $this->belongsTo(Template::class, 'template_id');
}
public function campaign()
{
return $this->belongsTo(MailCampaign::class, 'campaign_id');
}
}