Use setting app name or fallback to the app name

This commit is contained in:
James Brooks 2017-01-03 19:53:27 +00:00
parent 8fc8d81628
commit 100c4c8931

View File

@ -97,7 +97,10 @@ class ConfigServiceProvider extends ServiceProvider
// 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'));
$this->app->config->set(
'mail.from.name',
$this->app->config->get('setting.app_name', $this->app->config->get('app.name'))
);
}
}