|
|
|
|
@ -24,6 +24,8 @@ class EmailRecordUser extends SoftDeletesModel
|
|
|
|
|
public static function template($template, $var_data)
|
|
|
|
|
{
|
|
|
|
|
foreach ($var_data as $key => $var) {
|
|
|
|
|
$key = trim($key);
|
|
|
|
|
$var = trim($var);
|
|
|
|
|
$template = str_replace('{' . $key . '}', $var, $template);
|
|
|
|
|
}
|
|
|
|
|
return $template;
|
|
|
|
|
|