From 1a3249a48ea595fe93693b1d6ed7497acef5649d Mon Sep 17 00:00:00 2001 From: Rob Taylor Date: Mon, 14 Jan 2019 14:05:03 +0000 Subject: [PATCH] FIx: setConnectionName -> setConnection --- src/Searchable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Searchable.php b/src/Searchable.php index 2da2440..48e1c9f 100644 --- a/src/Searchable.php +++ b/src/Searchable.php @@ -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;