2

我似乎对在我的 Laravel 流明项目中安装邮件时遇到的问题感到有些困惑

composer require illuminate/mail
Using version ^7.8 for illuminate/mail
./composer.json has been updated
Gathering patches from patch file.
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: don't install illuminate/mail v7.8.1
    - Conclusion: don't install illuminate/mail v7.8.0
    - Conclusion: remove illuminate/container v6.18.10
    - Installation request for illuminate/mail ^7.8 -> satisfiable by illuminate/mail[7.x-dev, v7.8.0, v7.8.1].
    - Conclusion: don't install illuminate/container v6.18.10
    - illuminate/mail 7.x-dev requires illuminate/container ^7.0 -> satisfiable by illuminate/container[7.x-dev, v7.0.0, v7.0.1, v7.0.2, v7.0.3, v7.0.4, v7.0.5, v7.0.6, v7.0.7, v7.0.8, v7.1.0, v7.1.1, v7.1.2, v7.1.3, v7.2.0, v7.2.1, v7.2.2, v7.3.0, v7.4.0, v7.5.0, v7.5.1, v7.5.2, v7.6.0, v7.6.1, v7.6.2, v7.7.0, v7.7.1, v7.8.0, v7.8.1].
    - Can only install one of: illuminate/container[7.x-dev, v6.18.10].
    - Can only install one of: illuminate/container[v7.0.0, v6.18.10].
    - Can only install one of: illuminate/container[v7.0.1, v6.18.10].
    - Can only install one of: illuminate/container[v7.0.2, v6.18.10].
    - Can only install one of: illuminate/container[v7.0.3, v6.18.10].
    - Can only install one of: illuminate/container[v7.0.4, v6.18.10].
    - Can only install one of: illuminate/container[v7.0.5, v6.18.10].
    - Can only install one of: illuminate/container[v7.0.6, v6.18.10].
    - Can only install one of: illuminate/container[v7.0.7, v6.18.10].
    - Can only install one of: illuminate/container[v7.0.8, v6.18.10].
    - Can only install one of: illuminate/container[v7.1.0, v6.18.10].
    - Can only install one of: illuminate/container[v7.1.1, v6.18.10].
    - Can only install one of: illuminate/container[v7.1.2, v6.18.10].
    - Can only install one of: illuminate/container[v7.1.3, v6.18.10].
    - Can only install one of: illuminate/container[v7.2.0, v6.18.10].
    - Can only install one of: illuminate/container[v7.2.1, v6.18.10].
    - Can only install one of: illuminate/container[v7.2.2, v6.18.10].
    - Can only install one of: illuminate/container[v7.3.0, v6.18.10].
    - Can only install one of: illuminate/container[v7.4.0, v6.18.10].
    - Can only install one of: illuminate/container[v7.5.0, v6.18.10].
    - Can only install one of: illuminate/container[v7.5.1, v6.18.10].
    - Can only install one of: illuminate/container[v7.5.2, v6.18.10].
    - Can only install one of: illuminate/container[v7.6.0, v6.18.10].
    - Can only install one of: illuminate/container[v7.6.1, v6.18.10].
    - Can only install one of: illuminate/container[v7.6.2, v6.18.10].
    - Can only install one of: illuminate/container[v7.7.0, v6.18.10].
    - Can only install one of: illuminate/container[v7.7.1, v6.18.10].
    - Can only install one of: illuminate/container[v7.8.0, v6.18.10].
    - Can only install one of: illuminate/container[v7.8.1, v6.18.10].
    - Installation request for illuminate/container (locked at v6.18.10) -> satisfiable by illuminate/container[v6.18.10].

安装失败,正在将 ./composer.json 还原为其原始内容。

我已经尝试了所有我能想到的东西,但现在如果有人有任何建议或者可以引导我走向正确的方向,那我就不知道了

4

1 回答 1

5

您使用的是旧版本的 Lumen,当前版本的illuminate/mail.

你需要安装支持的最新版本illuminate/container v6.18.10 如果你检查了这个包的最新版本标签,支持的最早版本illuminate/container v6.18.10是这个:https://github.com/illuminate/mail/blob/v6.18.10/composer。 json在哪里可以找到该行

    "require": {
        ...
        "illuminate/container": "^6.0",
        ...
    },

要安装此特定版本,您需要使用:

composer require illuminate/mail:6.18.10
于 2020-04-27T12:48:53.570 回答