laravel-scout-elastic icon indicating copy to clipboard operation
laravel-scout-elastic copied to clipboard

Please install the Elasticsearch PHP client: elasticsearch/elasticsearch but is installed

Open abkrim opened this issue 2 years ago • 1 comments

Hi.

Trying to install the package and even though I have "elasticsearch/elasticsearch": "^8.4" installed, I get a very strange error.

> @php artisan package:discover --ansi

   Exception 

  Please install the Elasticsearch PHP client: elasticsearch/elasticsearch.

  at vendor/tamayo/laravel-scout-elastic/src/LaravelScoutElasticProvider.php:42
     38▕         if (class_exists(ClientBuilder::class)) {
     39▕             return;
     40▕         }
     41▕ 
  ➜  42▕         throw new Exception('Please install the Elasticsearch PHP client: elasticsearch/elasticsearch.');
     43▕     }
     44▕ }

Using:

  • Laravel Framework 9.46.0
  • php 8.2
  • elasticsearch/elasticsearch 8.4

abkrim avatar Jan 06 '23 17:01 abkrim

I had the same issue :)

DuyenNguyen66 avatar Jan 27 '23 06:01 DuyenNguyen66