diff --git a/src/Engines/TNTSearchEngine.php b/src/Engines/TNTSearchEngine.php index 5e26401..e751569 100644 --- a/src/Engines/TNTSearchEngine.php +++ b/src/Engines/TNTSearchEngine.php @@ -252,6 +252,10 @@ public function getBuilder($model) */ public function mapIds($results) { + if (empty($results['ids'])) { + return collect(); + } + return collect($results['ids'])->values(); }