From 3f2df3629d80c0fe45a743c095ed5cd169100f78 Mon Sep 17 00:00:00 2001 From: Joey Date: Sun, 2 Jul 2017 15:55:01 +0800 Subject: [PATCH] Chain `values` method in map function refer to my pull request in https://github.com/ErickTamayo/laravel-scout-elastic/pull/66 --- src/Engines/AlgoliaEngine.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Engines/AlgoliaEngine.php b/src/Engines/AlgoliaEngine.php index f88c4f98..7152e055 100644 --- a/src/Engines/AlgoliaEngine.php +++ b/src/Engines/AlgoliaEngine.php @@ -171,7 +171,7 @@ public function map($results, $model) if (isset($models[$key])) { return $models[$key]; } - })->filter(); + })->filter()->values(); } /**