Skip to content

package is not working with composer - laravel #38

@omarsafwany

Description

@omarsafwany

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?!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions