elasticsearch
elasticsearch copied to clipboard
The missing elasticsearch ORM for Laravel, Lumen and Native php applications
use str_start_with on php >=8.0 use start_with if is defined.
In laravel 8 and php 7.3 when I call save function as written in the docs I get this error **Call to undefined function Basemkhirat\Elasticsearch\array_except() in file /home/elasticsearch/elasticsearch-practice/vendor/basemkhirat/elasticsearch/src/Model.php on line...
Class starts_with not found in src/ElasticsearchServiceProvider.php You can replace it by str_starts_with() Your code is: `if(version_compare($this->app->version(), '5.1', ">=") or starts_with($this->app->version(), "Lumen")) { if ($this->app->runningInConsole()) { // Registering commands $this->commands([ ListIndicesCommand::class,...
In the composer file there is a request for `"elasticsearch/elasticsearch": "^5.0|^6.0",`. I haven't tested `"elasticsearch/elasticsearch": "^5.0|^6.0|^7.0",` yet. Has anyone had any luck with that yet?
Change starts_with by Str::startsWith in ElasticsearchServiceProvider
 change starts_with to Str::startsWith
my config ```