Skip to content
This repository has been archived by the owner on Feb 5, 2023. It is now read-only.

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

Open
abkrim opened this issue Jan 6, 2023 · 1 comment

Comments

@abkrim
Copy link

abkrim commented Jan 6, 2023

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
@DuyenNguyen66
Copy link

DuyenNguyen66 commented Jan 27, 2023

I had the same issue :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants