Skip to content

Commit

Permalink
handle array hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Sep 14, 2020
1 parent 9e4a866 commit 0920c23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Schema/MySqlSchemaState.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ protected function baseDumpCommand()
protected function baseVariables(array $config)
{
return [
'LARAVEL_LOAD_HOST' => $config['host'],
'LARAVEL_LOAD_HOST' => is_array($config['host']) ? $config['host'][0] : $config['host'],
'LARAVEL_LOAD_PORT' => $config['port'],
'LARAVEL_LOAD_USER' => $config['username'],
'LARAVEL_LOAD_PASSWORD' => $config['password'],
Expand Down

0 comments on commit 0920c23

Please sign in to comment.