Default the mail from address. Closes #2297

This commit is contained in:
James Brooks 2017-01-03 19:50:15 +00:00
parent aec4d70c58
commit 1f537faf32

View File

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