Skip to content

Commit

Permalink
Use $static $scoutBuilder if available (#852)
Browse files Browse the repository at this point in the history
  • Loading branch information
gdebrauwer authored Jul 29, 2024
1 parent 2d5e9df commit 0dc8e21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Searchable.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0dc8e21

Please sign in to comment.