Laravel 在 Laravel 版本 7.10.1 上安装 Passport

Laravel Installing Passport on Laravel Version 7.10.1

在 Windows 笔记本电脑上使用 laravel。 我正在尝试使用

安装 Passport
composer require laravel/passport=~4.0

我从 c​​omposer 收到以下消息。

  Problem 1
    - The requested package laravel/cashier (locked at v11.3.0, required as ^12.0) is satisfiable by laravel/cashier[v11.3.0] but these conflict with your requirements or minimum-stability.
  Problem 2
    - Conclusion: remove laravel/framework v7.10.1
    - Conclusion: don't install laravel/framework v7.10.1
    - laravel/passport 4.0.x-dev requires illuminate/http ~5.4 -> satisfiable by illuminate/http[5.4.x-dev, 5.5.x-dev, 5.6.x-dev, 5.7.17, 5.7.18, 5.7.19, 5.7.x-dev, 5.8.x-dev, v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9, 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, v5.5.37, v5.5.39, v5.5.40, v5.5.41, v5.5.43, v5.5.44, v5.6.0, v5.6.1, v5.6.10, v5.6.11, v5.6.12, v5.6.13, v5.6.14, v5.6.15, v5.6.16, v5.6.17, v5.6.19, v5.6.2, v5.6.20, v5.6.21, v5.6.22, v5.6.23, v5.6.24, v5.6.25, v5.6.26, v5.6.27, v5.6.28, v5.6.29, v5.6.3, v5.6.30, v5.6.31, v5.6.32, v5.6.33, v5.6.34, v5.6.35, v5.6.36, v5.6.37, v5.6.38, v5.6.39, v5.6.4, v5.6.5, v5.6.6, v5.6.7, v5.6.8, v5.6.9, v5.7.0, v5.7.1, v5.7.10, v5.7.11, v5.7.15, v5.7.2, v5.7.20, v5.7.21, v5.7.22, v5.7.23, v5.7.26, v5.7.27, v5.7.28, v5.7.3, v5.7.4, v5.7.5, v5.7.6, v5.7.7, v5.7.8, v5.7.9, v5.8.0, v5.8.11, v5.8.12, v5.8.14, v5.8.15, v5.8.17, v5.8.18, v5.8.19, v5.8.2, v5.8.20, v5.8.22, v5.8.24, v5.8.27, v5.8.28, v5.8.29, v5.8.3, v5.8.30, v5.8.31, v5.8.32, v5.8.33, v5.8.34, v5.8.35, v5.8.36, v5.8.4, v5.8.8, v5.8.9].
    - laravel/passport v4.0.0 requires illuminate/http ~5.4 -> satisfiable by illuminate/http[5.4.x-dev, 5.5.x-dev, 5.6.x-dev, 5.7.17, 5.7.18, 5.7.19, 5.7.x-dev, 5.8.x-dev, v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9, 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, v5.5.37, v5.5.39, v5.5.40, v5.5.41, v5.5.43, v5.5.44, v5.6.0, v5.6.1, v5.6.10, v5.6.11, v5.6.12, v5.6.13, v5.6.14, v5.6.15, v5.6.16, v5.6.17, v5.6.19, v5.6.2, v5.6.20, v5.6.21, v5.6.22, v5.6.23, v5.6.24, v5.6.25, v5.6.26, v5.6.27, v5.6.28, v5.6.29, v5.6.3, v5.6.30, v5.6.31, v5.6.32, v5.6.33, v5.6.34, v5.6.35, v5.6.36, v5.6.37, v5.6.38, v5.6.39, v5.6.4, v5.6.5, v5.6.6, v5.6.7, v5.6.8, v5.6.9, v5.7.0, v5.7.1, v5.7.10, v5.7.11, v5.7.15, v5.7.2, v5.7.20, v5.7.21, v5.7.22, v5.7.23, v5.7.26, v5.7.27, v5.7.28, v5.7.3, v5.7.4, v5.7.5, v5.7.6, v5.7.7, v5.7.8, v5.7.9, v5.8.0, v5.8.11, v5.8.12, v5.8.14, v5.8.15, v5.8.17, v5.8.18, v5.8.19, v5.8.2, v5.8.20, v5.8.22, v5.8.24, v5.8.27, v5.8.28, v5.8.29, v5.8.3, v5.8.30, v5.8.31, v5.8.32, v5.8.33, v5.8.34, v5.8.35, v5.8.36, v5.8.4, v5.8.8, v5.8.9].
    - laravel/passport v4.0.1 requires illuminate/http ~5.4 -> satisfiable by illuminate/http[5.4.x-dev, 5.5.x-dev, 5.6.x-dev, 5.7.17, 5.7.18, 5.7.19, 5.7.x-dev, 5.8.x-dev, v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9, 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, v5.5.37, v5.5.39, v5.5.40, v5.5.41, v5.5.43, v5.5.44, v5.6.0, v5.6.1, v5.6.10, v5.6.11, v5.6.12, v5.6.13, v5.6.14, v5.6.15, v5.6.16, v5.6.17, v5.6.19, v5.6.2, v5.6.20, v5.6.21, v5.6.22, v5.6.23, v5.6.24, v5.6.25, v5.6.26, v5.6.27, v5.6.28, v5.6.29, v5.6.3, v5.6.30, v5.6.31, v5.6.32, v5.6.33, v5.6.34, v5.6.35, v5.6.36, v5.6.37, v5.6.38, v5.6.39, v5.6.4, v5.6.5, v5.6.6, v5.6.7, v5.6.8, v5.6.9, v5.7.0, v5.7.1, v5.7.10, v5.7.11, v5.7.15, v5.7.2, v5.7.20, v5.7.21, v5.7.22, v5.7.23, v5.7.26, v5.7.27, v5.7.28, v5.7.3, v5.7.4, v5.7.5, v5.7.6, v5.7.7, v5.7.8, v5.7.9, v5.8.0, v5.8.11, v5.8.12, v5.8.14, v5.8.15, v5.8.17, v5.8.18, v5.8.19, v5.8.2, v5.8.20, v5.8.22, v5.8.24, v5.8.27, v5.8.28, v5.8.29, v5.8.3, v5.8.30, v5.8.31, v5.8.32, v5.8.33, v5.8.34, v5.8.35, v5.8.36, v5.8.4, v5.8.8, v5.8.9].
    - laravel/passport v4.0.2 requires illuminate/http ~5.4 -> satisfiable by illuminate/http[5.4.x-dev, 5.5.x-dev, 5.6.x-dev, 5.7.17, 5.7.18, 5.7.19, 5.7.x-dev, 5.8.x-dev, v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9, 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, v5.5.37, v5.5.39, v5.5.40, v5.5.41, v5.5.43, v5.5.44, v5.6.0, v5.6.1, v5.6.10, v5.6.11, v5.6.12, v5.6.13, v5.6.14, v5.6.15, v5.6.16, v5.6.17, v5.6.19, v5.6.2, v5.6.20, v5.6.21, v5.6.22, v5.6.23, v5.6.24, v5.6.25, v5.6.26, v5.6.27, v5.6.28, v5.6.29, v5.6.3, v5.6.30, v5.6.31, v5.6.32, v5.6.33, v5.6.34, v5.6.35, v5.6.36, v5.6.37, v5.6.38, v5.6.39, v5.6.4, v5.6.5, v5.6.6, v5.6.7, v5.6.8, v5.6.9, v5.7.0, v5.7.1, v5.7.10, v5.7.11, v5.7.15, v5.7.2, v5.7.20, v5.7.21, v5.7.22, v5.7.23, v5.7.26, v5.7.27, v5.7.28, v5.7.3, v5.7.4, v5.7.5, v5.7.6, v5.7.7, v5.7.8, v5.7.9, v5.8.0, v5.8.11, v5.8.12, v5.8.14, v5.8.15, v5.8.17, v5.8.18, v5.8.19, v5.8.2, v5.8.20, v5.8.22, v5.8.24, v5.8.27, v5.8.28, v5.8.29, v5.8.3, v5.8.30, v5.8.31, v5.8.32, v5.8.33, v5.8.34, v5.8.35, v5.8.36, v5.8.4, v5.8.8, v5.8.9].
    - laravel/passport v4.0.3 requires illuminate/http ~5.4 -> satisfiable by illuminate/http[5.4.x-dev, 5.5.x-dev, 5.6.x-dev, 5.7.17, 5.7.18, 5.7.19, 5.7.x-dev, 5.8.x-dev, v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9, 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, v5.5.37, v5.5.39, v5.5.40, v5.5.41, v5.5.43, v5.5.44, v5.6.0, v5.6.1, v5.6.10, v5.6.11, v5.6.12, v5.6.13, v5.6.14, v5.6.15, v5.6.16, v5.6.17, v5.6.19, v5.6.2, v5.6.20, v5.6.21, v5.6.22, v5.6.23, v5.6.24, v5.6.25, v5.6.26, v5.6.27, v5.6.28, v5.6.29, v5.6.3, v5.6.30, v5.6.31, v5.6.32, v5.6.33, v5.6.34, v5.6.35, v5.6.36, v5.6.37, v5.6.38, v5.6.39, v5.6.4, v5.6.5, v5.6.6, v5.6.7, v5.6.8, v5.6.9, v5.7.0, v5.7.1, v5.7.10, v5.7.11, v5.7.15, v5.7.2, v5.7.20, v5.7.21, v5.7.22, v5.7.23, v5.7.26, v5.7.27, v5.7.28, v5.7.3, v5.7.4, v5.7.5, v5.7.6, v5.7.7, v5.7.8, v5.7.9, v5.8.0, v5.8.11, v5.8.12, v5.8.14, v5.8.15, v5.8.17, v5.8.18, v5.8.19, v5.8.2, v5.8.20, v5.8.22, v5.8.24, v5.8.27, v5.8.28, v5.8.29, v5.8.3, v5.8.30, v5.8.31, v5.8.32, v5.8.33, v5.8.34, v5.8.35, v5.8.36, v5.8.4, v5.8.8, v5.8.9].
    - don't install illuminate/http 5.5.x-dev|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.5.0|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.5.16|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.5.17|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.5.2|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.5.28|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.5.33|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.5.34|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.5.35|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.5.36|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.5.37|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.5.39|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.5.40|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.5.41|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.5.43|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.5.44|don't install laravel/framework v7.10.1
    - don't install illuminate/http 5.6.x-dev|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.6.0|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.6.1|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.6.10|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.6.11|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.6.12|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.6.13|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.6.14|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.6.15|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.6.16|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.6.17|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.6.19|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.6.2|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.6.20|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.6.21|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.6.22|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.6.23|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.6.24|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.6.25|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.6.26|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.6.27|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.6.28|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.6.29|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.6.3|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.6.30|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.6.31|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.6.32|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.6.33|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.6.34|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.6.35|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.6.36|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.6.37|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.6.38|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.6.39|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.6.4|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.6.5|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.6.6|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.6.7|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.6.8|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.6.9|don't install laravel/framework v7.10.1
    - don't install illuminate/http 5.7.17|don't install laravel/framework v7.10.1
    - don't install illuminate/http 5.7.18|don't install laravel/framework v7.10.1
    - don't install illuminate/http 5.7.19|don't install laravel/framework v7.10.1
    - don't install illuminate/http 5.7.x-dev|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.7.0|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.7.1|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.7.10|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.7.11|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.7.15|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.7.2|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.7.20|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.7.21|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.7.22|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.7.23|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.7.26|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.7.27|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.7.28|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.7.3|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.7.4|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.7.5|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.7.6|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.7.7|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.7.8|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.7.9|don't install laravel/framework v7.10.1
    - don't install illuminate/http 5.8.x-dev|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.8.0|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.8.11|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.8.12|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.8.14|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.8.15|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.8.17|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.8.18|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.8.19|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.8.2|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.8.20|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.8.22|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.8.24|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.8.27|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.8.28|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.8.29|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.8.3|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.8.30|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.8.31|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.8.32|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.8.33|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.8.34|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.8.35|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.8.36|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.8.4|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.8.8|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.8.9|don't install laravel/framework v7.10.1
    - don't install illuminate/http 5.4.x-dev|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.4.0|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.4.13|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.4.17|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.4.19|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.4.27|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.4.36|don't install laravel/framework v7.10.1
    - don't install illuminate/http v5.4.9|don't install laravel/framework v7.10.1
    - Installation request for laravel/framework (locked at v7.10.1, required as ^7.0) -> satisfiable by laravel/framework[v7.10.1].
    - Installation request for laravel/passport ~4.0.0 -> satisfiable by laravel/passport[4.0.x-dev, v4.0.0, v4.0.1, v4.0.2, v4.0.3].

我不知道从这里到哪里去?我已尝试使用

安装最新版本的 Passport
composer require laravel/passport=~9.3.0

但得到相同的响应。

请问有人对如何克服这个问题有什么建议吗?

运行

之后
composer require laravel/passport

我收到这条消息

  Problem 1
    - The requested package laravel/cashier (locked at v11.3.0, required as ^12.0) is satisfiable by laravel/cashier[v11.3.0] but these conflict with your requirements or minimum-stability.

也许不定义版本试试

composer update
composer require laravel/passport

指定与您正在使用的 Laravel 版本兼容的护照版本。

   "require": {
    "laravel/passport": "^9.0",//your passport version
},

然后运行

composer update

composer require laravel/passport 适用于最新版本的 laravel。

您必须根据您的laravel版本下载版本。

所以要解决,请转到 Laravel 文档和 select 您当前使用的版本 运行 然后转到 Passport 它将显示要安装的适当版本的 Passport你的 laravel.

版本

试试这个 Laravel 版本 7:

composer require laravel/passport=~9.3.0