简体   繁体   English

Laravel Lumen从Composer安装Mail

[英]Laravel lumen install Mail from composer

I'm trying to install Mail client on Lumen, but I get the following error: 我正在尝试在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.

How do I install Mail on this micro-framework? 如何在此微型框架上安装Mail

Laravel and all the illuminate components were recently updated to 5.2.* (12/21/2015). Laravel和所有照明组件最近更新为5.2。*(12/21/2015)。 Lumen, however, has not been updated and still needs the 5.1.* components. 但是,流明尚未更新,仍然需要5.1。*组件。

Since you didn't specify the version of illuminate/mail to install, it tried to install the latest version (5.2). 由于您未指定要安装的illuminate / mail的版本,因此它尝试安装最新版本(5.2)。 You need to require the 5.1 version instead: 您需要使用5.1版本:

composer require illuminate/mail:5.1.*

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM