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

Installation error on laravel 5.8.* #117

Closed giovannidalmas1967 closed 2 years ago

giovannidalmas1967 commented 3 years ago

I have run this comand:

composer require cviebrock/laravel-elasticsearch

Your requirements could not be resolved to an installable set of packages.

Problem 1

Installation failed, reverting ./composer.json to its original content.

Thanks in advance

giovannidalmas1967 commented 3 years ago

This is my composer.json:

{ "name": "laravel/laravel", "description": "The Laravel Framework.", "keywords": [ "framework", "laravel" ], "license": "MIT", "type": "project", "require": { "php": ">=7.2", "ext-dom": "", "ext-json": "", "ext-libxml": "", "ext-simplexml": "", "ext-zip": "", "doctrine/dbal": "^2.9", "fideloper/proxy": "^4.0", "laravel/cashier": "~9.0", "laravel/framework": "5.8.", "laravel/nexmo-notification-channel": "^2.0", "laravel/slack-notification-channel": "^2.0", "laravel/spark-aurelius": "*@dev", "laravel/tinker": "~1.0", "mpociot/vat-calculator": "^2.4", "webpatser/laravel-uuid": "^3.0" }, "require-dev": { "barryvdh/laravel-debugbar": "^3.1", "barryvdh/laravel-ide-helper": "^2.6", "beyondcode/laravel-dump-server": "^1.0", "filp/whoops": "~2.0", "fzaninotto/faker": "~1.4", "mockery/mockery": "^1.0", "nunomaduro/collision": "^3.0", "phpunit/phpunit": "~8.0" }, "autoload": { "classmap": [ "database/seeds", "database/factories" ], "psr-4": { "App\": "app/" }, "files": [ "app/helpers.php" ] }, "autoload-dev": { "psr-4": { "Tests\": "tests/" } }, "extra": { "laravel": { "dont-discover": [] } }, "scripts": { "post-root-package-install": [ "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" ], "post-create-project-cmd": [ "@php artisan key:generate" ], "post-autoload-dump": [ "Illuminate\Foundation\ComposerScripts::postAutoloadDump", "@php artisan package:discover" ] }, "config": { "preferred-install": "dist", "sort-packages": true, "optimize-autoloader": true }, "repositories": [ { "type": "path", "url": "./spark" } ] }

cviebrock commented 3 years ago

Try version 4.1.3 of the package. That was the last version meant to be used with Laravel 5.8.

giovannidalmas1967 commented 3 years ago

I will try it. Let you know. Thanks a lot

giovannidalmas1967 commented 3 years ago

It worked, thanks a lot!

giovannidalmas1967 commented 3 years ago

I tried to do some tests and tried to run "php artisan laravel-elasticsearch:...", the result is that the command "laravel-elasticsearch" is not defined. Have I missed something on package's installation and configuration?

Thanks in advance

cviebrock commented 2 years ago

Closing old tickets. There is no artisan command by that name in the package.