fix Database connection [default] not configured

This commit is contained in:
xiaomlove
2022-06-12 21:32:15 +08:00
parent 43156f7fc5
commit 024ef8b665
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -290,7 +290,7 @@ class NexusDB
public static function table($table): \Illuminate\Database\Query\Builder
{
if (IN_NEXUS) {
return Capsule::table($table);
return Capsule::table($table, null, self::ELOQUENT_CONNECTION_NAME);
}
return DB::table($table);
}