Skip to content

Commit

Permalink
Merge pull request #75 from designmynight/robbytaylor-patch-1
Browse files Browse the repository at this point in the history
FIx: setConnectionName -> setConnection
  • Loading branch information
robbytaylor authored Jan 14, 2019
2 parents 8ba82cd + 1a3249a commit 361f4b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Searchable.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function onSearchConnection(\Closure $callback)
$arguments = array_slice(func_get_args(), 1);

$elasticModel = clone $arguments[0];
$elasticModel->setConnectionName(static::getElasticsearchConnectionName());
$elasticModel->setConnection(static::getElasticsearchConnectionName());

$arguments[0] = $elasticModel;

Expand Down

0 comments on commit 361f4b8

Please sign in to comment.