laravel / passport

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

Composer dependency conflict on fresh laravel 10 #1663

Closed zerosdev closed 1 year ago

zerosdev commented 1 year ago

Passport Version

^11.8

Laravel Version

^10.8

PHP Version

8.1.3

Database Driver & Version

No response

Description

I have fresh installed laravel 10 with composer create-project --prefer-dist laravel/laravel

Then i tried to install passport with composer require laravel/passport but got this error

Problem 1

Tried to use --with-all-dependencies option but it looks like psr/http-message downgraded to 1.1 so idk what the side effect

Steps To Reproduce

  1. composer create-project --prefer-dist laravel/laravel
  2. composer require laravel/passport
driesvints commented 1 year ago

Use composer require laravel/passport -W

driesvints commented 1 year ago

Use composer require laravel/passport -W

mreall commented 1 year ago

Thanks @driesvints. Perhaps the docs should be updated to include the '-W' flag so developers don't waste time trying to figure this out.