Using version ^8.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
- Conclusion: remove laravel/framework v5.8.35
- Conclusion: don't install laravel/framework v5.8.35
- laravel/passport 8.x-dev requires illuminate/support ^6.0|^7.0 -> satisfiable by laravel/framework[6.x-dev], illuminate/support
[6.x-dev, 7.0.x-dev, v6.0.0, v6.0.1, v6.0.2, v6.0.3, v6.0.4, v6.1.0, v6.2.0, v6.3.0, v6.4.1].
- laravel/passport v8.0.0 requires illuminate/support ^6.0|^7.0 -> satisfiable by laravel/framework[6.x-dev], illuminate/support[
6.x-dev, 7.0.x-dev, v6.0.0, v6.0.1, v6.0.2, v6.0.3, v6.0.4, v6.1.0, v6.2.0, v6.3.0, v6.4.1].
- Can only install one of: laravel/framework[6.x-dev, v5.8.35].
- don't install illuminate/support 6.x-dev|don't install laravel/framework v5.8.35
- don't install illuminate/support v6.0.0|don't install laravel/framework v5.8.35
- don't install illuminate/support v6.0.1|don't install laravel/framework v5.8.35
- don't install illuminate/support v6.0.2|don't install laravel/framework v5.8.35
- don't install illuminate/support v6.0.3|don't install laravel/framework v5.8.35
- don't install illuminate/support v6.0.4|don't install laravel/framework v5.8.35
- don't install illuminate/support v6.1.0|don't install laravel/framework v5.8.35
- don't install illuminate/support v6.2.0|don't install laravel/framework v5.8.35
- don't install illuminate/support v6.3.0|don't install laravel/framework v5.8.35
- don't install illuminate/support v6.4.1|don't install laravel/framework v5.8.35
- don't install illuminate/support 7.0.x-dev|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].
- Installation request for laravel/passport ^8.0 -> satisfiable by laravel/passport[8.x-dev, v8.0.0].
Installation failed, reverting ./composer.json to its original content.
To install the most recent version laravel/passport for Laravel Framework 5.8, run the following command
composer require laravel/passport
If you are still getting an error then install laravel/passport v7.5.1
Add to composer.json
file:
"require": {
"laravel/passport": "^7.5.1"
},
After, Run this command in the command prompt: composer update
I tested laravel/passport v7.5.1 It is compatible with Laravel Framework 5.8
NOTE: If you need this version of "laravel/passport": "^8.0" then you must need laravel 6