Check host is set
This commit is contained in:
@@ -91,8 +91,11 @@ class ConfigServiceProvider extends ServiceProvider
|
|||||||
|
|
||||||
// Set the mail from address.
|
// Set the mail from address.
|
||||||
if (!$this->app->config->get('mail.from.address')) {
|
if (!$this->app->config->get('mail.from.address')) {
|
||||||
$url = parse_url($appDomain)['host'];
|
$url = parse_url($appDomain);
|
||||||
$this->app->config->set('mail.from.address', "notify@{$url}");
|
|
||||||
|
if (isset($url['host'])) {
|
||||||
|
$this->app->config->set('mail.from.address', "notify@{$url['host']}");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the mail from name.
|
// Set the mail from name.
|
||||||
|
|||||||
Reference in New Issue
Block a user