diff --git a/src/Engines/TypesenseEngine.php b/src/Engines/TypesenseEngine.php index 74b3e83..76c30e9 100644 --- a/src/Engines/TypesenseEngine.php +++ b/src/Engines/TypesenseEngine.php @@ -168,7 +168,7 @@ public function update($models): void $models->each->pushSoftDeleteMetadata(); } - if (!$this->usesSoftDelete($models->first()) || is_null($models->first()?->deleted_at)) { + if (!$this->usesSoftDelete($models->first()) || is_null($models->first()?->deleted_at) || config('scout.soft_delete', false)) { $this->typesense->importDocuments($collection, $models->map(fn($m) => $m->toSearchableArray()) ->toArray()); }