diff --git a/src/SearchableTrait.php b/src/SearchableTrait.php index e013ecf..69f94a3 100644 --- a/src/SearchableTrait.php +++ b/src/SearchableTrait.php @@ -77,8 +77,7 @@ public function scopeSearch(Builder $q, $search, $threshold = null, $entireText * @return array */ protected function getDatabaseDriver() { - $key = Config::get('database.default'); - return Config::get('database.connections.' . $key . '.driver'); + return Config::get('database.connections.' . $this->connection . '.driver'); } /**