1
0
Fork 0
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:
lukinovec 2025-10-29 10:21:08 +01:00
parent 0b3f6987c3
commit f878aaf4e4
2 changed files with 9 additions and 7 deletions

View file

@ -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));
}
}