From 213bcb5ec1caf530673d98069d894629d840828c Mon Sep 17 00:00:00 2001 From: Anyon Date: Fri, 13 Nov 2020 16:07:29 +0800 Subject: [PATCH] Update database.php --- config/database.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/database.php b/config/database.php index 56c9414ae..60f168ec1 100644 --- a/config/database.php +++ b/config/database.php @@ -56,9 +56,9 @@ return [ // 是否需要断线重连 'break_reconnect' => false, // 监听SQL - 'trigger_sql' => app()->isDebug(), + 'trigger_sql' => true, // 开启字段缓存 - 'fields_cache' => false, + 'fields_cache' => app()->debug(), ], ], ];