【问题标题】:Laravel lumen install Mail from composerLaravel lumen 从作曲家安装邮件
【发布时间】:2023-03-03 10:04:02
【问题描述】:

我正在尝试在 Lumen 上安装邮件客户端,但出现以下错误:

mahdi@HP-EliteBook:/var/www/lumen$ composer require illuminate/mail
./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
    - Can only install one of: illuminate/support[v5.2.0, v5.1.25].
    - Can only install one of: illuminate/support[v5.2.0, v5.1.25].
    - Can only install one of: illuminate/support[v5.2.0, v5.1.25].
    - illuminate/mail v5.2.0 requires illuminate/support 5.2.* -> satisfiable by illuminate/support[v5.2.0].
    - Installation request for illuminate/mail 5.2 -> satisfiable by illuminate/mail[v5.2.0].
    - Installation request for illuminate/support == 5.1.25.0 -> satisfiable by illuminate/support[v5.1.25].


Installation failed, reverting ./composer.json to its original content.

如何在这个微框架上安装Mail

【问题讨论】:

    标签: php laravel composer-php lumen


    【解决方案1】:

    Laravel 和所有发光组件最近都更新到了 5.2.*(2015 年 12 月 21 日)。但是,Lumen 尚未更新,仍需要 5.1.* 组件。

    由于您没有指定要安装的Illumination/mail 版本,它尝试安装最新版本(5.2)。您需要改为 5.1 版本:

    composer require illuminate/mail:5.1.*
    

    【讨论】:

      猜你喜欢
      • 2014-03-04
      • 2017-05-22
      • 2017-02-14
      • 1970-01-01
      • 1970-01-01
      • 2013-12-25
      • 2018-07-19
      • 2013-07-10
      • 2015-01-23
      相关资源
      最近更新 更多