laravel/horizon包冲突问题

laravel框架为5.5
composer安装报错如下:

./composer.json has been updated
Running composer update laravel/horizon
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - laravel/horizon[v5.7.0, ..., v5.7.3] require illuminate/contracts ^8.17 -> found illuminate/contracts[v8.17.0, ..., v8.34.0] but these were not loaded, likely because it conflicts with another require.
    - Root composer.json requires laravel/horizon ^5.7 -> satisfiable by laravel/horizon[v5.7.0, v5.7.1, v5.7.2, v5.7.3].


Installation failed, reverting ./composer.json and ./composer.lock to their original content.

composer.lock 找到2处有关的限制

"illuminate/contracts": "^5.0|^6.0|^7.0|^8.0|^9.0",
"illuminate/contracts": "self.version",

我想应该是第二处有冲突吧,horizon默认安装的5.7我应该如何抉择我需要的对应版本。

《L03 构架 API 服务器》
你将学到如 RESTFul 设计风格、PostMan 的使用、OAuth 流程,JWT 概念及使用 和 API 开发相关的进阶知识。
《L02 从零构建论坛系统》
以构建论坛项目 LaraBBS 为线索,展开对 Laravel 框架的全面学习。应用程序架构思路贴近 Laravel 框架的设计哲学。
最佳答案

装个 2 版本的试试吧,最新版是给 Laravel8 用的

file

包链接

4年前 评论
讨论数量: 3

装个 2 版本的试试吧,最新版是给 Laravel8 用的

file

包链接

4年前 评论

@天上白玉京 是的,昨天发现所有的文档都没有指定版本,装旧版本可以用了,文档上不指定版本,对于不能更新框架的我来说不是很友好

4年前 评论

要去 packagist 上选一个合适的旧版本,然后 composer require laravel/horizon x.x

4年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!