Can't require laravel/passport with composer - php

When I do composer require laravel/passport, I get
Using version ^5.0 for laravel/passport ./composer.json has been
updated Loading composer repositories with package information
Updating dependencies (including require-dev) Your requirements could
not be resolved to an installable set of packages.
Problem 1
- Installation request for laravel/passport ^5.0 -> satisfiable by laravel/passport[v5.0.0].
- Conclusion: remove laravel/framework v5.5.34
- Conclusion: don't install laravel/framework v5.5.34
- laravel/passport v5.0.0 requires illuminate/encryption ~5.6 -> satisfiable by illuminate/encryption[v5.6.0, v5.6.1, v5.6.2, v5.6.3].
- don't install illuminate/encryption v5.6.0|don't install laravel/framework v5.5.34
- don't install illuminate/encryption v5.6.1|don't install laravel/framework v5.5.34
- don't install illuminate/encryption v5.6.2|don't install laravel/framework v5.5.34
- don't install illuminate/encryption v5.6.3|don't install laravel/framework v5.5.34
- Installation request for laravel/framework (locked at v5.5.34, required as 5.5.*) -> satisfiable by laravel/framework[v5.5.34].
Installation failed, reverting ./composer.json to its original
content.
I think this means that my version of illuminate/encryption is not compatible with this version of laravel/passport
Is that correct? What is the best way to resolve this? I can't even figure out how to see what version of illuminate/encryption I have. It doesn't show up in composer show.
Here is my composer.json
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": ">=7.0.0",
"fideloper/proxy": "~3.3",
"laravel/framework": "5.5.*",
"laravel/tinker": "~1.0",
"tymon/jwt-auth": "dev-develop"
},
"require-dev": {
"filp/whoops": "~2.0",
"fzaninotto/faker": "~1.4",
"mockery/mockery": "~1.0",
"phpunit/phpunit": "~6.0",
"symfony/thanks": "^1.0"
},
"autoload": {
"classmap": [
"database/seeds",
"database/factories"
],
"psr-4": {
"App\\": "app/"
}
},
"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
}
}

Passport 5.0 depends on version 5.6 of the Illuminate packages. I can see you have Laravel 5.5 installed, so either upgrade Laravel to 5.6, or use the 4.0 branch of Passport.
The "require" section of composer.json in the Passport repository has it all specified:
"require": {
"php": ">=7.0",
"firebase/php-jwt": "~3.0|~4.0|~5.0",
"guzzlehttp/guzzle": "~6.0",
"illuminate/auth": "~5.6",
"illuminate/console": "~5.6",
"illuminate/container": "~5.6",
"illuminate/contracts": "~5.6",
"illuminate/database": "~5.6",
"illuminate/encryption": "~5.6",
"illuminate/http": "~5.6",
"illuminate/support": "~5.6",
"league/oauth2-server": "^6.0",
"phpseclib/phpseclib": "^2.0",
"symfony/psr-http-message-bridge": "~1.0",
"zendframework/zend-diactoros": "~1.0"
},
The Illuminate version numbers line up with the frameworks, so Laravel 5.6 would use Illuminate 5.6, 5.5 would use Illuminate 5.5, etc.
See: Upgrade Guide - Upgrading To 5.6.0 From 5.5.

I had the same issue I am using Laravel Framework 5.4
It got solved by using lower version of passport
composer require laravel/passport "4.0.3"

Related

Laravel 8 Your requirements could not be resolved to an installable set of packages when running composer require laravel/passport

There are a lot of versions of this question floating around, but i haven't found any that deal with these specific packages.
I am trying to install laravel passport version 10 into my laravel 8 installation,
When running composer require laravel/passport i get the following response:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/passport[v10.0.1, ..., 10.x-dev] require illuminate/auth ^8.2 -> found illuminate/auth[v8.2.0, ..., 8.x-dev] but it conflicts with another require.
- laravel/passport v10.0.0 requires illuminate/auth ^8.0 -> found illuminate/auth[v8.0.0, ..., 8.x-dev] but it conflicts with another require.
- Root composer.json requires laravel/passport ^10.0 -> satisfiable by laravel/passport[v10.0.0, v10.0.1, 10.x-dev].
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
found illuminate/auth ^8.0 -> found illuminate/auth[v8.0.0, ..., 8.x-dev] <- I dont understand this part, does it have anything to do with having "minimum-stability": "dev" in my composer.json?
Anyways, here is my composer.json:
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": [
"framework",
"laravel"
],
"license": "MIT",
"require": {
"php": "^7.3|^8.0",
"fideloper/proxy": "^4.4.1",
"fruitcake/laravel-cors": "^2.0.3",
"guzzlehttp/guzzle": "^7.0.1",
"laravel/framework": "^9.0",
"laravel/passport": "^10.0",
"laravel/tinker": "^2.5|dev-develop",
"paragonie/random_compat": "2.*"
},
"require-dev": {
"fakerphp/faker": "^1.9.1",
"mockery/mockery": "^1.4.2",
"nunomaduro/collision": "^5.0",
"phpunit/phpunit": "^9.3.3"
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true
},
"extra": {
"laravel": {
"dont-discover": []
}
},
"autoload": {
"psr-4": {
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"#php artisan package:discover --ansi"
],
"post-root-package-install": [
"#php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"#php artisan key:generate --ansi"
]
}
}
EDIT 1:
I tried running composer require --no-update laravel/passport and when i run composer update I get the following error(i though it may provide extra info):
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/passport[v10.0.1, ..., 10.x-dev] require illuminate/support ^8.2 -> satisfiable by illuminate/support[v8.2.0, ..., 8.x-dev].
- laravel/passport v10.0.0 requires illuminate/support ^8.0 -> satisfiable by illuminate/support[v8.0.0, ..., 8.x-dev].
- Only one of these can be installed: illuminate/support[dev-master, v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev], laravel/framework[dev-master]. laravel/framework replaces illuminate/support and thus
cannot coexist with it.
- laravel/framework 9.x-dev is an alias of laravel/framework dev-master and thus requires it to be installed too.
- Root composer.json requires laravel/framework ^9.0 -> satisfiable by laravel/framework[9.x-dev (alias of dev-master)].
- Root composer.json requires laravel/passport ^10.0 -> satisfiable by laravel/passport[v10.0.0, v10.0.1, 10.x-dev].
EDIT 2:
To further explain the answer below, you have to delete the vendor folder and composer.json file inside your project, the you run composer install to downgrade to laravel 8.
After that you can run composer require laravel/passport and it will install properly
Just simple do one thing
remove composer.lock file and then install your required package
It work for me...
Downgrade your Laravel version from 9 to 8
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": [
"framework",
"laravel"
],
"license": "MIT",
"require": {
"php": "^7.3|^8.0",
"fideloper/proxy": "^4.4.1",
"fruitcake/laravel-cors": "^2.0.3",
"guzzlehttp/guzzle": "^7.0.1",
"laravel/framework": "^8.0",
"laravel/passport": "^10.0",
"laravel/tinker": "^2.5|dev-develop",
"paragonie/random_compat": "2.*"
},
"require-dev": {
"fakerphp/faker": "^1.9.1",
"mockery/mockery": "^1.4.2",
"nunomaduro/collision": "^5.0",
"phpunit/phpunit": "^9.3.3"
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true
},
"extra": {
"laravel": {
"dont-discover": []
}
},
"autoload": {
"psr-4": {
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"#php artisan package:discover --ansi"
],
"post-root-package-install": [
"#php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"#php artisan key:generate --ansi"
]
}
}
I was able to solve this problem just by modifying the PHP PATH on my operating system, at the time I am using windows with WampServer.
The change suggested above may work, but if a composer install command is being run, it is because an App already exists and is just downloading its dependencies, so changing the file suggested above can cause problems in the operation of the Application.
I think that changing the PATH note to the correct PHP version will work, in my case:
C:\wamp64\bin\php\php7.3.21 worked.
Valew.
I vas trying to install barryvdh/laravel-ide-helper when I got this error. It required PHP 7.3+ and Laravel 8.0+ as described here, but I had lower versions. So here are the steps I followed:
Deleted composer.lock file
Changed the version of PHP and Laravel in composer.json
Ran composer install which creates a new composer.lock file
Then ran composer require barryvdh/laravel-ide-helper and it was installed successfully
Just delete composer.json and composer.lock files, and it will do the trick :)

composer get installation error for phpseclib

I am trying to install phpseclib in Laravel for RSA. I have tried following command.
composer require phpseclib/phpseclib
But I do get following error.
Using version ^2.0 for phpseclib/phpseclib
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
The requested package symfony/translation (locked at v4.4.7, required as 4.3.8) is satisfiable by symfony/translation[v4.4.7] but these conflict with your requirements or minimum-stability.
Problem 2
Conclusion: remove symfony/cache-contracts v2.0.1
Conclusion: don't install symfony/cache-contracts v2.0.1
don't install symfony/contracts v1.1.6|don't install symfony/cache-contracts v2.0.1
don't install symfony/contracts v1.1.7|don't install symfony/cache-contracts v2.0.1
don't install symfony/contracts v1.1.8|don't install symfony/cache-contracts v2.0.1
Installation request for symfony/cache-contracts (locked at v2.0.1) -> satisfiable by symfony/cache-contracts[v2.0.1].
Installation request for symfony/translation 4.3.8 -> satisfiable by symfony/translation[v4.3.8].
Conclusion: don't install symfony/translation-contracts v2.0.1|install symfony/contracts v1.1.6|install symfony/contracts v1.1.7|install symfony/contracts v1.1.8
Conclusion: remove symfony/translation-contracts v2.0.1|install symfony/contracts v1.1.6|install symfony/contracts v1.1.7|install symfony/contracts v1.1.8
symfony/translation v4.3.8 requires symfony/translation-contracts ^1.1.6 -> satisfiable by symfony/contracts[v1.1.6, v1.1.7, v1.1.8], symfony/translation-contracts[v1.1.6, v1.1.7, v1.1.9].
Can only install one of: symfony/translation-contracts[v1.1.6, v2.0.1].
Can only install one of: symfony/translation-contracts[v1.1.7, v2.0.1].
Can only install one of: symfony/translation-contracts[v1.1.9, v2.0.1].
Installation request for symfony/translation-contracts (locked at v2.0.1) -> satisfiable by symfony/translation-contracts[v2.0.1].
Installation failed, reverting ./composer.json to its original content.
Given below is the content of composer.json file.
"name": "laravel/laravel",
"type": "project",
"version": "v1.2.0",
"description": "The Laravel Framework.",
"keywords": [
"framework",
"laravel"
],
"license": "MIT",
"require": {
"php": "^7.2",
"ext-json": "*",
"berkayk/onesignal-laravel": "^1.0",
"doctrine/dbal": "~2.3",
"egulias/email-validator": "^2.1",
"fideloper/proxy": "^4.0",
"infyomlabs/coreui-templates": "6.0.x-dev",
"infyomlabs/laravel-generator": "6.0.x-dev",
"intervention/image": "^2.5",
"laminas/laminas-diactoros": "^2.2",
"laravel/framework": "^6.0",
"laravel/passport": "^7.5",
"laravel/socialite": "^4.3",
"laravel/telescope": "^2.1",
"laravel/tinker": "^1.0",
"laravelcollective/html": "^6.0",
"league/flysystem-aws-s3-v3": "^1.0",
"phpseclib/phpseclib": "^2.0",
"pusher/pusher-php-server": "~4.0",
"spatie/laravel-analytics": "^3.9",
"spatie/laravel-permission": "^3.2",
"symfony/translation": "4.3.8",
"yajra/laravel-datatables-oracle": "~9.0"
},
"require-dev": {
"barryvdh/laravel-debugbar": "^3.2",
"barryvdh/laravel-ide-helper": "^2.6",
"filp/whoops": "^2.0",
"fzaninotto/faker": "^1.4",
"mockery/mockery": "^1.0",
"nunomaduro/collision": "^3.0",
"phpunit/phpunit": "^8.0"
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true
},
"extra": {
"laravel": {
"dont-discover": []
}
},
"autoload": {
"files": ["app/helpers.php"],
"psr-4": {
"App\\": "app/"
},
"classmap": [
"database/seeds",
"database/factories"
]
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"#php artisan package:discover --ansi"
],
"post-root-package-install": [
"#php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"#php artisan key:generate --ansi"
]
}
I have tried for couple of hours to search solution on google and stack overflow but didn't get any success.
Are you sure the given error message is related to phpseclib/phpseclib? That package does not use any Symfony dependencies. And, according to the dependency list of laravel/passport, that library is already installed.
I would assume that you have installed another package in the meantime by adding it to composer.json manually. What happens if you call composer install - does it inform you that the installation is not possible, or that the lock file is out of sync?
You could resolve this by removing symfony/translation from your composer.json, run composer update, and try to reinstall this package afterwards. Because somehow symfony/translation-contracts got installed in v2.0.1 (which is only compatible with Symfony 4.4 or later), while your configuration explicitly tries to load symfony/translation from Symfony 4.3

composer require iatstuti/laravel-cascade-soft-deletes is not installing on laravel 5.8.35

When i am trying to install this package iatstuti/laravel-cascade-soft-deletes via the command
composer require iatstuti/laravel-cascade-soft-deletes . It is giving me this error
Problem 1
- Installation request for iatstuti/laravel-cascade-soft-deletes ^2.0 -> satisfiable by iatstuti/laravel-cascade-soft-deletes[2.0.0].
- Conclusion: remove laravel/framework v5.8.35
- Conclusion: don't install laravel/framework v5.8.35
- iatstuti/laravel-cascade-soft-deletes 2.0.0 requires illuminate/events ^6.0 -> satisfiable by illuminate/events[v6.0.0, v6.0.1, v6.0.2, v6.0.3, v6.0.4].
- don't install illuminate/events v6.0.0|don't install laravel/framework v5.8.35
- don't install illuminate/events v6.0.1|don't install laravel/framework v5.8.35
- don't install illuminate/events v6.0.2|don't install laravel/framework v5.8.35
- don't install illuminate/events v6.0.3|don't install laravel/framework v5.8.35
- don't install illuminate/events v6.0.4|don't install laravel/framework v5.8.35
- Installation request for laravel/framework (locked at v5.8.35, required as 5.8.*) -> satisfiable by laravel/framework[v5.8.35].
can somebody please help me, what to do now? i am stuck, find solutions on net but nothing is working.
I want this package to use softdelete functionality on parent child concept in laravel.
Here is my composer.json
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": ">=7.1.3",
"brian2694/laravel-toastr": "*",
"doctrine/dbal": "*",
"fideloper/proxy": "*",
"guzzlehttp/guzzle": "*",
"laravel/framework": "5.8.*",
"laravel/tinker": "*",
"laravelcollective/html": "*",
"maatwebsite/excel": "*",
"spatie/laravel-permission": "*",
"thestringler-laravel/manipulator": "*",
"barryvdh/laravel-cors": "*"
},
"require-dev": {
"filp/whoops": "*",
"fzaninotto/faker": "*",
"mockery/mockery": "*",
"phpunit/phpunit": "*",
"symfony/css-selector": "*",
"symfony/dom-crawler": "*"
},
"autoload": {
"classmap": [
"database/seeds",
"database/factories",
"app/Models"
],
"files": [
"app/Http/Helper/helper.php",
"app/Http/Helper/logActivities.php"
],
"psr-4": {
"App\\": "app/"
}
},
"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
}
}
The latest version of this package (2.0.0) is a Laravel 6 package. Version 1.5.0 seems to be the Laravel 5 package you want. Since you didn't specify a version to install, composer uses the latest version.
Install 1.5.0 via composer using
composer require iatstuti/laravel-cascade-soft-deletes "1.5.0"

Can't install mpdf using composer in php 7.2.9

I'm trying to install mpdf using composer command :
composer require mpdf/mpdf
but I am getting this error:
Problem 1
- Conclusion: don't install mpdf/mpdf v7.1.5
- Conclusion: don't install mpdf/mpdf v7.1.4
- Conclusion: don't install mpdf/mpdf v7.1.3
- Conclusion: don't install mpdf/mpdf v7.1.2
- Conclusion: don't install mpdf/mpdf v7.1.1
- Conclusion: remove setasign/fpdi v2.1.0
- Installation request for mpdf/mpdf ^7.1 -> satisfiable by mpdf/mpdf[v7.1.0, v7.1.1, v7.1.2, v7.1.3, v7.1.4, v7.1.5].
- Conclusion: don't install setasign/fpdi v2.1.0
- mpdf/mpdf v7.1.0 requires setasign/fpdi 1.6.* -> satisfiable by setasign/fpdi[1.6.0, 1.6.1, 1.6.2].
- Can only install one of: setasign/fpdi[1.6.0, v2.1.0].
- Can only install one of: setasign/fpdi[1.6.1, v2.1.0].
- Can only install one of: setasign/fpdi[1.6.2, v2.1.0].
- Installation request for setasign/fpdi (locked at v2.1.0) -> satisfiable by setasign/fpdi[v2.1.0].
Installation failed, reverting ./composer.json to its original content.
this is my composer.json
{
"lynx39/lara-pdf-merger": "1.0.*",
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": [
"framework",
"laravel"
],
"license": "MIT",
"type": "project",
"require": {
"php": "^7.1.3",
"codedge/laravel-fpdf": "^1.2",
"crabbly/fpdf-laravel": "^1.0",
"cyber-duck/laravel-excel": "^1.2",
"dompdf/dompdf": "^0.8.2",
"fideloper/proxy": "^4.0",
"jurosh/pdf-merge": "^2.0",
"laravel/framework": "5.6.*",
"laravel/passport": "^7.0",
"laravel/tinker": "^1.0",
"maatwebsite/excel": "^3.0",
"mpdf/mpdf": "^7.1",
"paragonie/random_compat": "2.*",
"phpoffice/phpspreadsheet": "^1.4",
"phpoffice/phpword": "^0.15.0",
"rguedes/pdfmerger": "^1.0",
"setasign/fpdi-fpdf": "^2.0",
"tecnickcom/tc-lib-pdf": "dev-master"
},
"require-dev": {
"filp/whoops": "^2.0",
"fzaninotto/faker": "^1.4",
"mockery/mockery": "^1.0",
"nunomaduro/collision": "^2.0",
"phpunit/phpunit": "^7.0"
},
"autoload": {
"classmap": [
"database/seeds",
"database/factories"
],
"psr-4": {
"App\\": "app/" } }, "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
},
"minimum-stability": "dev",
"prefer-stable": true
}
Any solution??
mPDF 7.x is not compatible with setasign/fpdi in version 2.x - use version 1.6.
For setasign/fpdi 2.x upgrade to mPDF 8.x.

Update to laravel 5.6 from 5.5 composer fails

I've been following the upgrade guide provided on the Laravel website from 5.5 -> 5.6
https://laravel.com/docs/5.6/upgrade
When I run composer install everything seems okay, but then I run composer update everything gets wonky, this seems to be something I should be concerned about, how do I fix it?
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for orchestra/testbench 3.6.2 -> satisfiable by orchestra/testbench[v3.6.2].
- Conclusion: don't install laravel/framework v5.6.7
- Conclusion: don't install laravel/framework v5.6.6
- sofa/eloquence v5.5.1 requires sofa/eloquence-base 5.5.* -> satisfiable by sofa/eloquence-base[v5.5].
- sofa/eloquence v5.5.1 requires sofa/eloquence-base 5.5.* -> satisfiable by sofa/eloquence-base[v5.5].
- sofa/eloquence-base v5.5 requires illuminate/database 5.5.* -> satisfiable by laravel/framework[v5.5.19], illuminate/database[v5.5.0, v5.5.16, v5.5.17, v5.5.2, v5.5.28, v5.5.33, v5.5.34, v5.5.35, v5.5.36].
- sofa/eloquence-base v5.5 requires illuminate/database 5.5.* -> satisfiable by laravel/framework[v5.5.19], illuminate/database[v5.5.0, v5.5.16, v5.5.17, v5.5.2, v5.5.28, v5.5.33, v5.5.34, v5.5.35, v5.5.36].
- don't install laravel/framework v5.6.4|remove laravel/framework v5.5.19
- don't install illuminate/database v5.5.0|don't install laravel/framework v5.6.4
- don't install illuminate/database v5.5.16|don't install laravel/framework v5.6.4
- don't install illuminate/database v5.5.17|don't install laravel/framework v5.6.4
- don't install illuminate/database v5.5.2|don't install laravel/framework v5.6.4
- don't install illuminate/database v5.5.28|don't install laravel/framework v5.6.4
- don't install illuminate/database v5.5.33|don't install laravel/framework v5.6.4
- don't install illuminate/database v5.5.34|don't install laravel/framework v5.6.4
- don't install illuminate/database v5.5.35|don't install laravel/framework v5.6.4
- don't install illuminate/database v5.5.36|don't install laravel/framework v5.6.4
- orchestra/testbench v3.6.2 requires laravel/framework ~5.6.4 -> satisfiable by laravel/framework[v5.6.4, v5.6.5, v5.6.6, v5.6.7].
- Conclusion: don't install laravel/framework v5.6.5
- Installation request for sofa/eloquence ~5.5.1 -> satisfiable by sofa/eloquence[v5.5.1].
Here is what my composer file looks like
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": ">=5.6.4",
"laravel/framework": "5.6.*",
"ext-ldap": "*",
"tymon/jwt-auth": "0.5.*",
"adldap2/adldap2-laravel": "3.0.*",
"barryvdh/laravel-cors": "*",
"regulus/activity-log": "0.5.*",
"backup-manager/laravel": "^1.2.2",
"league/flysystem-sftp": "^1.0",
"intervention/image": "^2.3",
"sofa/eloquence": "~5.5.1",
"sofa/eloquence-base":"~5.5",
"shiftonelabs/laravel-nomad": "^1.0",
"predis/predis": "^1.1",
"shiftonelabs/laravel-cascade-deletes": "^1.0",
"kalnoy/nestedset": "^4.3",
"laravel/tinker": "^1.0",
"guzzlehttp/guzzle": "~6.0",
"pusher/pusher-php-server": "~3.0",
"swiftmailer/swiftmailer":"^6.0",
"fideloper/proxy":"~4.0"
},
"require-dev": {
"laravel/dusk": "~2.0.0",
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~7.0",
"filp/whoops": "~2.0",
"orchestra/testbench":"3.6.2",
"symfony/css-selector": "3.1.*",
"symfony/dom-crawler": "3.1.*",
"laracasts/generators": "dev-master as 1.1.4",
"barryvdh/laravel-ide-helper": "^2.4"
},
"autoload": {
"classmap": [
"database"
],
"psr-4": {
"App\\": "app/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"scripts": {
"post-root-package-install": [
"php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"php artisan key:generate"
],
"post-install-cmd": [
"Illuminate\\Foundation\\ComposerScripts::postInstall",
"php artisan optimize"
],
"post-update-cmd": [
"Illuminate\\Foundation\\ComposerScripts::postUpdate",
"php artisan ide-helper:generate",
"php artisan ide-helper:meta",
"php artisan optimize"
],"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"#php artisan package:discover"
]
},
"config": {
"preferred-install": "dist",
"optimize-autoloader": true
},
"extra": {
"laravel": {
"dont-discover": [
"laravel/dusk"
]
}
}
}
It looks like sofa/eloquence 5.5.1 requires Laravel 5.5, which is preventing your upgrade to Laravel 5.6.
It looks like they released a package three days ago to be compatible with Laravel 5.6; you can edit your composer file to change its version to 5.6 and run composer update.
"sofa/eloquence": "^5.6",
"sofa/eloquence-base":"^5.6",
As per documentation says:
Laravel 5.6 requires PHP 7.1.3 or higher.
Try to change your composer.json with:
"require": {
"php": ">=7.1.3",
Let me know if it helps
EDIT
try to change the config:
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true,
"minimum-stability":"dev",
"prefer-stable": true
}
and check if all the required plugins support the latest version of laravel.

Categories