From 0517d8ffed94daa65c006bc7849afeca130ab060 Mon Sep 17 00:00:00 2001 From: augushong Date: Mon, 10 Jan 2022 14:11:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9fields=5Fcache=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/database.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/database.php b/config/database.php index 3970f20..caf1475 100644 --- a/config/database.php +++ b/config/database.php @@ -1,4 +1,5 @@ true, // 开启字段缓存 - 'fields_cache' => false, - // 字段缓存路径 - 'schema_cache_path' => app()->getRuntimePath() . 'schema' . DIRECTORY_SEPARATOR, + 'fields_cache' => Env::get('database.fields_cache', false), + ], // 更多的数据库配置信息