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

Elasticsearch 5 for Laravel 6 #79

Closed clevonnoel closed 3 years ago

clevonnoel commented 4 years ago

I am unable to install this package using Laravel 6. Can you please update or advise a workaround?

cviebrock commented 4 years ago

What error do you get when installing?

cviebrock commented 4 years ago

Closing due to no response. Feel free to re-open or comment if you are still having issues.

jonasva commented 3 years ago

Having the same issue, can't install v2 of this library (which supports Elasticsearch 5) on Laravel 6.

Getting the following error while running composer update:

Problem 1

I think it's because of the dependency of Laravel 5 support.

cviebrock commented 3 years ago

You have Laravel 6 and the ES 5 client? You are right: I don't think I had a package version that supported that combination.

Is it possible to upgrade your ES library and/or your Laravel application? If not, I can try making a 2.x release that supports Laravel 6 and ES5.

cviebrock commented 3 years ago

Can you try the 4.1 branch of this package and see if that works for you? I don't have the right combination of Laravel and ES locally to test.

jonasva commented 3 years ago

I installed version 4.1.3, which seems to work as well with my Laravel 6/ES 5. Thanks for the help! Before your reply I actually already forked the repo and made a patch for the 2.0 branch. Might not be needed anymore now though.