basemkhirat / elasticsearch

The missing elasticsearch ORM for Laravel, Lumen and Native php applications
MIT License
401 stars 130 forks source link

str_contains() #109

Closed shota-mentesh closed 4 years ago

shota-mentesh commented 4 years ago

As of Laravel 5.8 str_contains() was deprecated, in 6.0 it was removed.

The issue lies in ElasticsearchServiceProvider.php:49

if (str_contains($this->app->version(), 'Lumen')) {
    $this->app->configure("es");
}

str_contains() needs to be changed to \Str::contains().

basemkhirat commented 4 years ago

Fixed in V1.4. Update now.