Skip to content

Commit

Permalink
Fix #71 Revert #70
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaslopezj committed Aug 5, 2015
1 parent 39dcf98 commit ecc8aa7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SearchableTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ public function scopeSearch(Builder $q, $search, $threshold = null, $entireText
* @return array
*/
protected function getDatabaseDriver() {
return Config::get('database.connections.' . $this->connection . '.driver');
$key = Config::get('database.default');
return Config::get('database.connections.' . $key . '.driver');
}

/**
Expand Down

0 comments on commit ecc8aa7

Please sign in to comment.