diff --git a/config/database.php b/config/database.php index e28638241..cb6f995a4 100644 --- a/config/database.php +++ b/config/database.php @@ -58,7 +58,7 @@ return [ // 是否需要断线重连 'break_reconnect' => false, // 字段缓存路径 - 'schema_cache_path' => app()->getRuntimePath() . 'schema' . DIRECTORY_SEPARATOR, + 'schema_cache_path' => app()->getRootPath() . 'runtime' . DIRECTORY_SEPARATOR . 'schema' . DIRECTORY_SEPARATOR, ], ], ];