diff --git a/src/Engines/TypesenseEngine.php b/src/Engines/TypesenseEngine.php index 5a285336..86860466 100644 --- a/src/Engines/TypesenseEngine.php +++ b/src/Engines/TypesenseEngine.php @@ -522,6 +522,17 @@ protected function usesSoftDelete($model): bool return in_array(SoftDeletes::class, class_uses_recursive($model), true); } + /** + * Set the search options provided by user. + * + * @param array $options + * @return $this + */ + public function withSearchParameters(array $options): static + { + return $this->setSearchParameters($options); + } + /** * Set the search options provided by user. *