Skip to content

Commit b68ebdf

Browse files
authored
Closes 36875 (#36881)
1 parent 141e223 commit b68ebdf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Illuminate/Database/Schema/PostgresSchemaState.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,10 @@ protected function baseDumpCommand()
7070
*/
7171
protected function baseVariables(array $config)
7272
{
73+
$config['host'] = $config['host'] ?? '';
74+
7375
return [
74-
'LARAVEL_LOAD_HOST' => $config['host'],
76+
'LARAVEL_LOAD_HOST' => is_array($config['host']) ? $config['host'][0] : $config['host'],
7577
'LARAVEL_LOAD_PORT' => $config['port'],
7678
'LARAVEL_LOAD_USER' => $config['username'],
7779
'LARAVEL_LOAD_PASSWORD' => $config['password'],

0 commit comments

Comments
 (0)