Update Laravel 8 with srlabs/centaur: “11.*” to Laravel 9.

huangapple go评论58阅读模式
英文:

Update Laravel 8 with srlabs/centaur: "11.*" to Laravel 9

问题

I am upgrading an old application (I did not develop it) with srlabs/centaur version 11.*

我正在升级一个旧应用程序(我没有开发它),使用 srlabs/centaur 版本 11.*。

I am trying to upgrade the laravel version to Laravel 9 but got this error.

我尝试升级 Laravel 版本到 Laravel 9,但遇到了这个错误。

  • srlabs/centaur 11.01.00 requires illuminate/support ^8.0 -> satisfiable by illuminate/support[v8.0.0, ..., v8.83.27].

  • Only one of these can be installed: illuminate/support[v5.1.1, ..., v5.8.36, v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.8, v10.0.0, ..., v10.13.2], laravel/framework[v9.0.0, ..., v9.52.8]. laravel/framework replaces illuminate/support and thus cannot coexist with it.

  • Root composer.json requires laravel/framework ^9.0 -> satisfiable by laravel/framework[v9.0.0, ..., v9.52.8].

  • srlabs/centaur 11.01.00 要求 illuminate/support ^8.0 -> 可满足 illuminate/support[v8.0.0, ..., v8.83.27]。

  • 只能安装其中一个:illuminate/support[v5.1.1, ..., v5.8.36, v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.8, v10.0.0, ..., v10.13.2],laravel/framework[v9.0.0, ..., v9.52.8]。laravel/framework 替代了 illuminate/support,因此无法共存。

  • 根 composer.json 要求 laravel/framework ^9.0 -> 可满足 laravel/framework[v9.0.0, ..., v9.52.8]。

How to i upgrade this since i saw the Centaur (github_link) is only supported until Laravel 8.

由于我看到 Centaur (github_link) 仅支持到 Laravel 8,我应该如何升级这个。

Do i need to change Centaur to Sentinel (github_link). If i need to change, do i need to rebuild all the custom code?

我需要将 Centaur 更改为 Sentinel (github_link) 吗?如果需要更改,是否需要重新构建所有自定义代码?

Thank you

谢谢

英文:

I am upgrading an old application (I did'nt develop it) with srlabs/centaur version 11.*

I am trying to upgrade the laravel version to Laravel 9 but got this error.

- srlabs/centaur 11.01.00 requires illuminate/support ^8.0 -> satisfiable by illuminate/support[v8.0.0, ..., v8.83.27].
- Only one of these can be installed: illuminate/support[v5.1.1, ..., v5.8.36, v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.8, v10.0.0, ..., v10.13.2], laravel/framework[v9.0.0, ..., v9.52.8]. laravel/framework replaces illuminate/support and thus cannot coexist with it.
- Root composer.json requires laravel/framework ^9.0 -> satisfiable by laravel/framework[v9.0.0, ..., v9.52.8].

How to i upgrade this since i saw the Centaur (github_link) is only supported until Laravel 8.

Do i need to change Centaur to Sentinel(github_link). If i need to change, do i need to rebuild all the custom code?

Thank you

答案1

得分: 1

似乎你将无法在 Laravel 9 上使用它。该包的最新更新仅支持 Laravel 10。请查看 11.01.00 到 12.0.0(最新版本)之间的代码更改这里

英文:

It seems like you won't be able to use it on Laravel 9. The latest update of the package only supports Laravel 10. See the code changes between 11.01.00 and 12.0.0 (latest) here.

huangapple
  • 本文由 发表于 2023年6月6日 16:37:55
  • 转载请务必保留本文链接:https://go.coder-hub.com/76412843.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定