adamfairholm / Elasticquent

Map Larvel Eloquent models to Elasticsearch types
MIT License
201 stars 38 forks source link

package is not working with composer - laravel #38

Open omarsafwany opened 8 years ago

omarsafwany commented 8 years ago

I am trying to install the package in composer by adding the following as stated: "fairholm/elasticquent": "dev-master" but I keep getting the following errors:

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

Problem 1

Potential causes:

Read https://getcomposer.org/doc/articles/troubleshooting.md for further common problems.

That is my composer.json file: { "name": "laravel/laravel", "description": "The Laravel Framework.", "keywords": ["framework", "laravel"], "license": "MIT", "type": "project", "require": { "php": ">=5.5.9", "laravel/framework": "5.1.", "fzaninotto/faker": "^1.5", "gloudemans/shoppingcart": "~1.3", "elasticsearch/elasticsearch": "1.1.", "illuminate/database": "^5.1", "fairholm/elasticquent": "dev-master" }, "require-dev": { "mockery/mockery": "0.9.*", "phpunit/phpunit": "~4.0", "phpspec/phpspec": "~2.1" }, "autoload": { "classmap": [ "database" ], "psr-4": { "App\": "app/" } }, "autoload-dev": { "classmap": [ "tests/TestCase.php" ] }, "scripts": { "post-install-cmd": [ "php artisan clear-compiled", "php artisan optimize" ], "pre-update-cmd": [ "php artisan clear-compiled" ], "post-update-cmd": [ "php artisan optimize" ], "post-root-package-install": [ "php -r \"copy('.env.example', '.env');\"" ], "post-create-project-cmd": [ "php artisan key:generate" ] }, "config": { "preferred-install": "dist" } }

Any idea what is going wrong?!

ritchia1 commented 8 years ago

What version of Laravel are you using? My guess is that you're using a new version of Laravel (5 or 5.1), which Elasticquent doesn't support (yet?).

ritchia1 commented 8 years ago

Ok, this issue is referenced here:

https://github.com/adamfairholm/Elasticquent/issues/11

Half way down the page there is a fix (to actually reference a pull request in composer.json.)

Artistan commented 8 years ago

That is for laravel 5.