Skip to content

Commit c67f86c

Browse files
committed
Fixed the connection string for master slave mongo db set up
1 parent 400f7b6 commit c67f86c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Jenssegers/Mongodb/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ protected function getDsn(array $config)
124124
}
125125
}
126126

127-
echo "mongodb://" . $credentials . implode(',', $hosts) . "/{$database}";
127+
return "mongodb://" . $credentials . implode(',', $hosts) . "/{$database}";
128128
}
129129

130130
/**

0 commit comments

Comments
 (0)