mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-04 14:04:06 +00:00
Improve closure overrides
This commit is contained in:
parent
0b3f6987c3
commit
f878aaf4e4
2 changed files with 9 additions and 7 deletions
|
|
@ -120,7 +120,9 @@ class LogTenancyBootstrapper implements TenancyBootstrapper
|
|||
}
|
||||
}
|
||||
} elseif ($override instanceof Closure) {
|
||||
$override($this->config, $tenant);
|
||||
$channelConfigKey = "logging.channels.{$channel}";
|
||||
|
||||
$this->config->set($channelConfigKey, $override($this->config->get($channelConfigKey), $tenant));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue