laravel-scout-elastic
laravel-scout-elastic copied to clipboard
Please install the Elasticsearch PHP client: elasticsearch/elasticsearch but is installed
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
I had the same issue :)