如何更新Laravel 8至9?

发布于 2025-01-31 02:20:25 字数 1400 浏览 2 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

面犯桃花 2025-02-07 02:20:25

升级Laravel需要更多步骤,然后再更新作曲家,但是它们并不是太复杂了。这是指南以及所有步骤:

https://lararavel.com/ docs/9.x/升级#升级-9.0

要回答这个问题,对于作曲家,您将进行以下更改(来自文档):

您应该在应用程序的composer.json文件中更新以下依赖项:

  • laravel/framework to ^9.0
  • nunomaduro/collision to ^6.1

此外,请用替换为“ Spatie/laravel-dignition”:“^1.0”在您的应用程序的Composer.json文件中。

此外,以下第一方套餐已收到新的主要发行版,以支持Laravel9.x。如果适用,您应该在升级之前阅读其单独的升级指南:

最后,检查您的应用程序消耗的任何其他第三方软件包,并验证您正在使用适当的版本进行Laravel 9支持。

Note :这只会升级作曲家,您应该在上面提供的文档中进行更多更改,以便您可以正确升级到Laravel 9。

Upgrading Laravel requires a bit more steps then just updating composer, however they aren't too complicated. Here is the guide along with all the steps:

https://laravel.com/docs/9.x/upgrade#upgrade-9.0

To answer the question, for composer you would make the following changes (from the documentation):

You should update the following dependencies in your application's composer.jsonfile:

  • laravel/framework to ^9.0
  • nunomaduro/collision to ^6.1

In addition, please replace facade/ignition with "spatie/laravel-ignition": "^1.0" in your application's composer.json file.

Furthermore, the following first-party packages have received new major releases to support Laravel 9.x. If applicable, you should read their individual upgrade guides before upgrading:

Finally, examine any other third-party packages consumed by your application and verify you are using the proper version for Laravel 9 support.

Note: this will only upgrade composer, there are more changes that you should review in the documentation provided above so that you can fully upgrade to Laravel 9 correctly.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文