feat: Implement mail campaign feature with CRUD operations and email sending capabilities
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user