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), + ], // 更多的数据库配置信息