elasticsearch icon indicating copy to clipboard operation
elasticsearch copied to clipboard

The missing elasticsearch ORM for Laravel, Lumen and Native php applications

Results 68 elasticsearch issues
Sort by recently updated
recently updated
newest added

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

![image](https://user-images.githubusercontent.com/48215423/95505578-3ce15e80-09b7-11eb-82a2-ba3ff081ef93.png) change starts_with to Str::startsWith