Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

package is not working with composer - laravel #38

Open
omarsafwany opened this issue Sep 21, 2015 · 3 comments
Open

package is not working with composer - laravel #38

omarsafwany opened this issue Sep 21, 2015 · 3 comments

Comments

@omarsafwany
Copy link

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
- Installation request for fairholm/elasticquent dev-master -> satisfiable by fairholm/elasticquent[dev-master].
- fairholm/elasticquent dev-master requires illuminate/database ~4.2 -> no matching package found.

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
Copy link

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
Copy link

Ok, this issue is referenced here:

#11

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

@Artistan
Copy link

That is for laravel 5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants