This commit is contained in:
2023-10-07 20:40:59 +08:00
parent 4b304e52a2
commit e1e5af2173
+1 -1
View File
@@ -124,7 +124,7 @@ class Db implements ISqlBuilder
*/
public static function table($table): Db|static
{
$connection = new Db();
$connection = new Db();
$connection->connection = current(\config('databases.connections'));
$connection->from($table);
return $connection;