Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
zqhong committed Jun 13, 2018
1 parent f845394 commit fe9eddd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/EloquentServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ protected function setPageResolver(Container $container)
protected function addConnection($dbName, $dbConfig)
{
$setting = [
'driver' => Arr::get($dbConfig, 'adapter'),
'host' => Arr::get($dbConfig, 'host'),
'driver' => Arr::get($dbConfig, 'adapter', 'mysql'),
'host' => Arr::get($dbConfig, 'host', '127.0.0.1'),
'database' => Arr::get($dbConfig, 'name'),
'username' => Arr::get($dbConfig, 'user'),
'password' => Arr::get($dbConfig, 'pass'),
Expand Down

0 comments on commit fe9eddd

Please sign in to comment.