Laravel lumen 从作曲家安装邮件
Posted
技术标签:
【中文标题】Laravel lumen 从作曲家安装邮件【英文标题】:Laravel lumen install Mail from composer 【发布时间】:2016-04-04 01:40:54 【问题描述】:我正在尝试在 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
?
【问题讨论】:
【参考方案1】:Laravel 和所有发光组件最近都更新到了 5.2.*(2015 年 12 月 21 日)。但是,Lumen 尚未更新,仍需要 5.1.* 组件。
由于您没有指定要安装的Illumination/mail 版本,它尝试安装最新版本(5.2)。您需要改为 5.1 版本:
composer require illuminate/mail:5.1.*
【讨论】:
以上是关于Laravel lumen 从作曲家安装邮件的主要内容,如果未能解决你的问题,请参考以下文章
Laravel/Lumen - Artisan 控制台中缺少命令