Laravel流明从作曲家安装邮件

时间:2015-12-30 05:30:16

标签: php laravel composer-php lumen

我试图在Lumen上安装Mail客户端,但是我收到以下错误:

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

1 个答案:

答案 0 :(得分:3)

Laravel和所有照明组件最近更新为5.2。*(12/21/2015)。但是,Lumen尚未更新,仍然需要5.1。*组件。

由于您没有指定要安装的照明/邮件的版本,因此它尝试安装最新版本(5.2)。您需要改为使用5.1版本:

composer require illuminate/mail:5.1.*