Skip to content

Commit

Permalink
Laravel10 Compatibility (#5)
Browse files Browse the repository at this point in the history
* Laravel 10 / PHP8.2 compatibility
  • Loading branch information
Ange7 authored Jun 25, 2024
1 parent f557f4e commit 08a1476
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 7 deletions.
19 changes: 12 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
],
"license": "MIT",
"require": {
"php": "^7.4|^8.0",
"elasticsearch/elasticsearch": "^7.13",
"laravel/framework": "^7.25|^8.0",
"laravel/scout": "^7.0|^8.0"
"php": "^8.2",
"elasticsearch/elasticsearch": "^7.17",
"laravel/framework": "^10.0",
"laravel/scout": "^10.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.19.0",
"phpunit/phpunit": "^8.0",
"orchestra/testbench": "^6.3"
"friendsofphp/php-cs-fixer": "^3.14",
"phpunit/phpunit": "^9.0",
"orchestra/testbench": "^8.0"
},
"autoload": {
"psr-4": {
Expand All @@ -44,5 +44,10 @@
"php-cs-fixer fix --config .php-cs-fixer.php -vv --diff --allow-risky=yes --dry-run"
],
"test": "phpunit"
},
"config": {
"allow-plugins": {
"php-http/discovery": true
}
}
}
15 changes: 15 additions & 0 deletions src/ElasticEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -330,4 +330,19 @@ protected function getModelIDFromHit($hit)
{
return str_replace($hit['_source']['type'].'_', '', $hit['_id']);
}

public function lazyMap(Builder $builder, $results, $model)
{
// TODO: Implement lazyMap() method.
}

public function createIndex($name, array $options = [])
{
// TODO: Implement createIndex() method.
}

public function deleteIndex($name)
{
// TODO: Implement deleteIndex() method.
}
}

0 comments on commit 08a1476

Please sign in to comment.