From 6d4e9ff6225f302bf8a4433f8aa10a2c05742cf9 Mon Sep 17 00:00:00 2001 From: ajcastro Date: Sun, 25 Jul 2021 21:50:42 +0800 Subject: [PATCH] Fix --- src/Searchable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Searchable.php b/src/Searchable.php index 987fc61..e27e074 100644 --- a/src/Searchable.php +++ b/src/Searchable.php @@ -115,7 +115,7 @@ public function scopeSortByRelevance($query, $sortByRelevance = true) { $sortByRelevance && SortByRelevance::sort( $query, - $this->buildAllColumns()->actual(), + $this->buildSearchableColumns()->actual(), $query->getModel()->searchQuery()->getSearchStr() ); }