Problem 1
- Conclusion: don't install laravel/passport v6.0.6
- Conclusion: don't install laravel/passport v6.0.5
- Conclusion: don't install laravel/passport v6.0.4
- Conclusion: don't install laravel/passport v6.0.3
- Conclusion: don't install laravel/passport v6.0.2
- Conclusion: don't install laravel/passport v6.0.1
- Conclusion: don't install laravel/passport v6.0.0
- Conclusion: don't install laravel/passport 6.0.x-dev
- Conclusion: remove paragonie/random_compat v9.99.99
- Installation request for laravel/passport ^6.0 -> satisfiable by laravel/passport[6.0.x-dev, v6.0.0, v6.0.1, v6.0.2, v6.0.3, v6.0.4, v6.0.5, v6.0.6].
- Conclusion: don't install paragonie/random_compat v9.99.99
- laravel/passport 6.0.x-dev requires league/oauth2-server ^7.0 -> satisfiable by league/oauth2-server[7.0.0, 7.1.0, 7.1.1, 7.2.0].
- league/oauth2-server 7.1.0 requires defuse/php-encryption ^2.1 -> satisfiable by defuse/php-encryption[v2.1.0, v2.2.0].
- league/oauth2-server 7.1.1 requires defuse/php-encryption ^2.1 -> satisfiable by defuse/php-encryption[v2.1.0, v2.2.0].
- league/oauth2-server 7.2.0 requires defuse/php-encryption ^2.1 -> satisfiable by defuse/php-encryption[v2.1.0, v2.2.0].
- league/oauth2-server 7.0.0 requires paragonie/random_compat ^2.0 -> satisfiable by paragonie/random_compat[v2.0.0, v2.0.1, v2.0.10, v2.0.11, v2.0.12, v2.0.13, v2.0.14, v2.0.15, v2.0.16, v2.0.17, v2.0.2, v2.0.3, v2.0.4, v2.0.5, v2.0.6, v2.0.7, v2.0.8, v2.0.9].
- defuse/php-encryption v2.1.0 requires paragonie/random_compat ~2.0 -> satisfiable by paragonie/random_compat[v2.0.0, v2.0.1, v2.0.10, v2.0.11, v2.0.12, v2.0.13, v2.0.14, v2.0.15, v2.0.16, v2.0.17, v2.0.2, v2.0.3, v2.0.4, v2.0.5, v2.0.6, v2.0.7, v2.0.8, v2.0.9].
- defuse/php-encryption v2.2.0 requires paragonie/random_compat ~2.0 -> satisfiable by paragonie/random_compat[v2.0.0, v2.0.1, v2.0.10, v2.0.11, v2.0.12, v2.0.13, v2.0.14, v2.0.15, v2.0.16, v2.0.17, v2.0.2, v2.0.3, v2.0.4, v2.0.5, v2.0.6, v2.0.7, v2.0.8, v2.0.9].
- Can only install one of: paragonie/random_compat[v2.0.0, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.1, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.10, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.11, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.12, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.13, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.14, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.15, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.16, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.17, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.2, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.3, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.4, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.5, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.6, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.7, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.8, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.9, v9.99.99].
- Installation request for paragonie/random_compat (locked at v9.99.99) -> satisfiable by paragonie/random_compat[v9.99.99].
my php version
PHP 7.2.6 (cli) (built: May 25 2018 06:18:43) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.6, Copyright (c) 1999-2018, by Zend Technologies
my composer.json
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": "^7.1.3",
"fideloper/proxy": "^4.0",
"laravel/framework": "5.6.*",
"laravel/tinker": "^1.0"
},
"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
}
same problem here
Same problem! I'm using Laravel 5.6 with PHP 7.1.14
I have same Problem
I have same Problem
Yeah, same issue here.
Edit: Managed to install Passport by adding "laravel/passport": "^6.0" to my composer.json.
Note: I'm using "php": "^7.1.3", and "laravel/framework": "5.6.*".
The same problem
Fresh Laravel. version: 5.6.28
PHP 7.2.7
The problem is this:
paragonie/random_compat v9.99.99
Version v2.0.17 does not have this problem.
I solved it temporarily by adding the following line to composer.json:
"paragonie/random_compat": "2.*"
Now it's working.
It seems like an intentional change by the random_compat guy!
See: https://github.com/paragonie/random_compat/issues/147
Passport requires league/oauth2-server which requires defuse/php-encryption hence the issues.
The maintainer has made a pull request for the php-encryption package here, with a brief explanation.
Hopefully it will be merged soon 🤞.
I did the following to fix the installation at the moment.
composer require paragonie/random_compat:2.*
composer require laravel/passport
Same issue with Laravel 5.5.40 Similar resolution as above:
composer require paragonie/random_compat=~2.0
composer require laravel/passport=~4.0
Just more information on nasrulhazim's solution it worked for me but I could not install through homestead I had to use my global composer in the folder to download the packages.
Thanks @nasrulhazim .. Your solution worked for me :)
I've done a bit of investigation into this. Essentially this is happening if you have installed uuid _before_ you install Passport or The League's OAuth2 server. Ben's uuid library has its requirements set as:
"paragonie/random_compat": "^1.0|^2.0|9.99.99"
If you only install the uuid lib for the first time, version 9.99.99 will be installed. When you then try to install Passport, it requires ~2.0 of random_compat.
Composer _should_ downgrade random_compat to satisfy both libraries but it seems there is a bug in composer which is preventing this from occurring. Scott from Paragonie is working on updating the php-encryption library to set the requirement to v9.99.99 which will work around the bug in Composer but this will likely take a few days as he needs to get the signing keys.
If you do a fresh install of the UUID lib and Passport/OAuth2-Server, your installation should have no problems as Composer will correctly determine that both libs require the 2.x branch of random_compat.
In the meantime, @nasrulhazim's fix will work if you have already composer installed and want to then add further packages. Sorry about this issue and thanks for your patience while a fix is put in place.
@nasrulhazim it work for me thanks
Version 2.2.1 of php-encryption has been released. There shouldn't be a need for a workaround now. This issue can be closed now @monoland
same here, @nasrulhazim thanks
thx @nasrulhazim
great one @maranesi and @nasrulhazim <3
This issue is still occurring for me using Laravel 5.7. It appears that league/oauth2-server has not incorporated downstream changes from defuse/php-encryption.
@dbudwin I don't believe this is correct. There doesn't need to be any changes to oauth2-server as far as I'm aware. Are you sure you've updated all your composer dependencies correctly?
Sigh. Ran composer update first thing this morning without changing anything and it worked 😒
@maranesi Sir, you are an angel sent by heaven.
Closing this issue because it's already solved, old or not relevant anymore. Feel free to reply if you're still experiencing this issue.
composer require paragonie/random_compat=~2.0
composer require laravel/passport=^7.0
try this and let me know if it works composer require laravel/passport "4.0.*"
Hi, I've had the same problem. Here is a fix, let me know if it works for anyone.
composer create-project laravel/laravel="5.5.*” myProject
I experienced this same issue, what I did was to update the PHP version on my local server and everything was back o normal
I have update my laravel project 6 to 7 but I had same problem. I have fixed this and the steps in below. Hope this will be help.
In my case I have followed these steps.
-> Made changes in composer.json
laravel/framework to ^7.0
nunomaduro/collision to ^4.1
phpunit/phpunit to ^8.5
laravel/tinker to ^2.0
facade/ignition to ^2.0
and
laravel/ui to ^2.0
-> And then changes in App\Exceptions\Handler class Throwable interface instead of Exception instances
public function report(Throwable $exception); // replace Exception with Throwable
public function render($request, Throwable $exception); // replace Exception with Throwable
run > composer update
Done..!!
Application has been updated
Most helpful comment
I did the following to fix the installation at the moment.