dynamic email templates

This commit is contained in:
denisdulici
2020-01-09 15:24:52 +03:00
parent 2ea379c8f5
commit 807187f0a3
5 changed files with 74 additions and 253 deletions

View File

@ -6,7 +6,6 @@ use App\Abstracts\Model;
class EmailTemplate extends Model
{
protected $table = 'email_templates';
/**
@ -14,7 +13,7 @@ class EmailTemplate extends Model
*
* @var array
*/
protected $fillable = ['company_id', 'alias', 'subject', 'body', 'params'];
protected $fillable = ['company_id', 'alias', 'class', 'name', 'subject', 'body', 'params'];
/**
* Scope to only include contacts of a given type.