Skip to content

Commit

Permalink
laravel 11 support
Browse files Browse the repository at this point in the history
  • Loading branch information
eddierusinskas committed May 8, 2024
1 parent 14e8fc6 commit 31f5149
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
}
],
"require": {
"laravel/scout": "^8.0|^9.0|^10.0|^11.0",
"illuminate/database": "^8.0|^9.0|^10.0|^11.0",
"illuminate/support": "^8.0|^9.0|^10.0|^11.0",
"laravel/scout": "^11.0",
"illuminate/database": "^11.0",
"illuminate/support": "^11.0",
"opensearch-project/opensearch-php": "^2.1"
},
"extra": {
Expand Down
2 changes: 1 addition & 1 deletion src/Engines/OpenSearchEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function delete($models)
$index = $models->first()->searchableAs();

$keys = $models instanceof RemoveableScoutCollection
? $models->pluck($models->first()->getUnqualifiedScoutKeyName())
? $models->pluck($models->first()->getScoutKeyName())
: $models->map->getScoutKey();

$this->openSearch->bulkDelete($index, $keys);
Expand Down

0 comments on commit 31f5149

Please sign in to comment.