mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 03:57:22 +08:00
fix Database connection [default] not configured
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user