Default mail from name

This commit is contained in:
James Brooks
2017-01-03 19:52:40 +00:00
parent 1f537faf32
commit 8fc8d81628

View File

@@ -94,6 +94,11 @@ class ConfigServiceProvider extends ServiceProvider
$url = parse_url($appDomain)['host'];
$this->app->config->set('mail.from.address', "notify@{$url}");
}
// Set the mail from name.
if (!$this->app->config->get('mail.from.name')) {
$this->app->config->set('mail.from.name', $this->app->config->get('app.name'));
}
}
/**