Skip to content

Commit 25c6f22

Browse files
authored
fix compatibility for laravel 6
1 parent b12784b commit 25c6f22

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ElasticsearchServiceProvider.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use Illuminate\Contracts\Container\BindingResolutionException;
88
use Illuminate\Support\ServiceProvider;
99
use Laravel\Scout\EngineManager;
10+
use Illuminate\Support\Str;
1011
use Basemkhirat\Elasticsearch\Commands\ListIndicesCommand;
1112
use Basemkhirat\Elasticsearch\Commands\CreateIndexCommand;
1213
use Basemkhirat\Elasticsearch\Commands\DropIndexCommand;
@@ -46,7 +47,7 @@ public function boot()
4647

4748
// Auto configuration with lumen framework.
4849

49-
if (str_contains($this->app->version(), 'Lumen')) {
50+
if (Str::contains($this->app->version(), 'Lumen')) {
5051
$this->app->configure("es");
5152
}
5253

0 commit comments

Comments
 (0)