laravel / passport

Laravel Passport provides OAuth2 server support to Laravel.
https://laravel.com/docs/passport
MIT License
3.3k stars 781 forks source link

I am installing laravel new project with laravel version 10.8, and installing passport but geting error #1662

Closed darshanmultiqos closed 1 year ago

darshanmultiqos commented 1 year ago

composer.json "require": { "php": "^8.1", "guzzlehttp/guzzle": "^7.2", "laravel/framework": "^10.8", "laravel/sanctum": "^3.2", "laravel/tinker": "^2.8", "league/oauth2-server": "^3.2" },

getting error when install laravel passport

`Your requirements could not be resolved to an installable set of packages.

Problem 1

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions. You can also try re-running composer require with an explicit version constraint, e.g. "composer require laravel/passport:*" to figure out if any version is installable, or "composer require laravel/passport:^2.1" if you know which you need. ` Thanks.

driesvints commented 1 year ago

Try composer require laravel/passport -W

darshanmultiqos commented 1 year ago

Hello, Thank you for your response.

I try with composer require laravel/passport -W this command but getting same error.

[image: image.png]

On Wed, May 3, 2023 at 12:45 PM Dries Vints @.***> wrote:

Closed #1662 https://github.com/laravel/passport/issues/1662 as completed.

— Reply to this email directly, view it on GitHub https://github.com/laravel/passport/issues/1662#event-9152251946, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWPZL6OLF5TAUBJQUZKEN4LXEIAXTANCNFSM6AAAAAAXT6WLS4 . You are receiving this because you authored the thread.Message ID: @.***>

darshanmultiqos commented 1 year ago

I try with the composer require laravel/passport -W this command but got the same error.

`Your requirements could not be resolved to an installable set of packages.

Problem 1

You can also try re-running composer require with an explicit version constraint, e.g. "composer require laravel/passport:*" to figure out if any version is installable, or "composer require laravel/passport:^2.1" if you know which you need. `