mailerlite / laravel-elasticsearch

An easy way to use the official Elastic Search client in your Laravel applications.
MIT License
909 stars 187 forks source link

error while installing cviebrock/laravel-elasticsearch on laravel 7 #113

Closed swapnilphadke02 closed 3 years ago

swapnilphadke02 commented 3 years ago

I am using PHP 7.3 and Elasticsearch 7 on my local machine.

while installing Elasticsearch i am getting the following error.

Using version ^8.0 for cviebrock/laravel-elasticsearch ./composer.json has been updated Running composer update cviebrock/laravel-elasticsearch Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages.

Problem 1

cviebrock commented 3 years ago

The 8.x versions of this package are for Laravel 8.0 only, so I'm going to guess that maybe you are using an earlier version?

Either try installing the package without specifying any version to let Composer figure it out:

composer require cviebrock/laravel-elasticsearch

Or, if you must specify, then version 4.2.2 should work.