We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f5d370 commit dd6ac5fCopy full SHA for dd6ac5f
src/Illuminate/Database/Console/DbCommand.php
@@ -67,8 +67,16 @@ public function getConnection()
67
}
68
69
if ($this->option('read')) {
70
+ if (is_array($connection['read']['host'])) {
71
+ $connection['read']['host'] = $connection['read']['host'][0];
72
+ }
73
+
74
$connection = array_merge($connection, $connection['read']);
75
} elseif ($this->option('write')) {
76
+ if (is_array($connection['write']['host'])) {
77
+ $connection['write']['host'] = $connection['write']['host'][0];
78
79
80
$connection = array_merge($connection, $connection['write']);
81
82
0 commit comments