我可以在laravel 5.5中安装eloquent-sluggable,但有一些错误

时间:2018-02-11 08:38:39

标签: eloquent packages laravel-eloquent

我想安装eloquent-sluggable但是我遇到了这种类型的错误 和我的laravel版本= 5.5和我的PHP版本是7.0但我不知道我该怎么办这个错误。 如果你知道,请帮助我。

我的错误:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - illuminate/support v5.6.3 requires php ^7.1.3 -> your PHP version (7.0.10) does not satisfy that requirement.
    - illuminate/support v5.6.2 requires php ^7.1.3 -> your PHP version (7.0.10) does not satisfy that requirement.
    - illuminate/support v5.6.1 requires php ^7.1.3 -> your PHP version (7.0.10) does not satisfy that requirement.
    - illuminate/support v5.6.0 requires php ^7.1.3 -> your PHP version (7.0.10) does not satisfy that requirement.
    - cviebrock/eloquent-sluggable 4.5.0 requires illuminate/support ~5.6.0 -> satisfiable by illuminate/support[v5.6.0, v5.6.1, v5.6.2, v5.6.3].
    - Installation request for cviebrock/eloquent-sluggable 4.5 -> satisfiable by cviebrock/eloquent-sluggable[4.5.0].


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


-------

我关注了相关网站,但我可以解决它。 感谢。

1 个答案:

答案 0 :(得分:0)

是的,你应该能够做到这一点。问题非常简单:正如错误消息所示,这些软件包至少需要PHP 7.1.3,而安装了PHP 7.0.10:

requires php ^7.1.3 -> your PHP version (7.0.10) does not satisfy that requirement

更新您的PHP版本就可以了。如何完成这取决于您的开发环境的设置方式。