diff --git a/src/Searchable.php b/src/Searchable.php index c139ad5d..75dbf4ef 100644 --- a/src/Searchable.php +++ b/src/Searchable.php @@ -118,7 +118,7 @@ public function searchIndexShouldBeUpdated() */ public static function search($query = '', $callback = null) { - return app(Builder::class, [ + return app(static::$scoutBuilder ?? Builder::class, [ 'model' => new static, 'query' => $query, 'callback' => $callback,