Skip to content

Commit 0920c23

Browse files
committed
handle array hosts
1 parent 9e4a866 commit 0920c23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Database/Schema/MySqlSchemaState.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ protected function baseDumpCommand()
9595
protected function baseVariables(array $config)
9696
{
9797
return [
98-
'LARAVEL_LOAD_HOST' => $config['host'],
98+
'LARAVEL_LOAD_HOST' => is_array($config['host']) ? $config['host'][0] : $config['host'],
9999
'LARAVEL_LOAD_PORT' => $config['port'],
100100
'LARAVEL_LOAD_USER' => $config['username'],
101101
'LARAVEL_LOAD_PASSWORD' => $config['password'],

0 commit comments

Comments
 (0)