Skip to content

Commit

Permalink
Merge pull request #2 from shortcodes/feat/scout-update
Browse files Browse the repository at this point in the history
Update scout version
  • Loading branch information
shortcodes authored May 16, 2022
2 parents 3c9b3ee + c3ab2a9 commit 96502b8
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 20 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"require": {
"php": ">=7.1.3",
"elasticsearch/elasticsearch": "6.*",
"laravel/scout": "8.*"
"laravel/scout": "8.*||9.*"
},
"require-dev": {
"phpunit/phpunit": "7.*",
Expand Down
39 changes: 21 additions & 18 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Builders/FilterBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ public function get()
{
$collection = parent::get();

if (isset($this->with) && $collection->count() > 0) {
if (isset($this->with) && !empty($this->with) && $collection->count() > 0) {
$collection->load($this->with);
}

Expand Down
15 changes: 15 additions & 0 deletions src/ElasticEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -344,4 +344,19 @@ public function flush($model)
{

}

public function lazyMap(Builder $builder, $results, $model)
{

}

public function createIndex($name, array $options = [])
{

}

public function deleteIndex($name)
{

}
}

0 comments on commit 96502b8

Please sign in to comment.