update:修复多数据库切换之后CatchQuery方法失效
This commit is contained in:
parent
068234b57c
commit
0efe79ddb3
@ -103,7 +103,10 @@ class CatchAdminService extends Service
|
|||||||
{
|
{
|
||||||
$connections = $this->app->config->get('database.connections');
|
$connections = $this->app->config->get('database.connections');
|
||||||
|
|
||||||
$connections['mysql']['query'] = CatchQuery::class;
|
// 支持多数据库配置注入 Query
|
||||||
|
foreach ($connections as &$connection) {
|
||||||
|
$connection['query'] = CatchQuery::class;
|
||||||
|
}
|
||||||
|
|
||||||
$this->app->config->set([
|
$this->app->config->set([
|
||||||
'connections' => $connections
|
'connections' => $connections
|
||||||
|
Loading…
x
Reference in New Issue
Block a user