Skip to content

Commit dde7931

Browse files
committed
fix command-line for lumen
1 parent 8b97147 commit dde7931

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ElasticsearchServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function boot()
7979
public function register()
8080
{
8181

82-
if(version_compare(app()->version(), '5.1', ">=")) {
82+
if(version_compare($this->app->version(), '5.1', ">=") or starts_with($this->app->version(), "Lumen")) {
8383

8484
if ($this->app->runningInConsole()) {
8585

0 commit comments

Comments
 (0)