简体   繁体   English

将 laravel 5.4 项目升级到 laravel 7

[英]Upgrading a laravel 5.4 project to laravel 7

Is it even worth it upgrading a laravel 5.4 project to laravel 7 which includes many packages.将 laravel 5.4 项目升级到包含许多软件包的 laravel 7 是否值得。 Do I have to upgraded it throught all the laraver version up to?我是否必须通过所有 laraver 版本升级它? Thx谢谢

By upgrading one version at time, it will be easier to fix and change whats needs to be changed.通过一次升级一个版本,将更容易修复和更改需要更改的内容。 Here is how I did:这是我的做法:

https://laravel.com/docs/5.5/upgrade https://laravel.com/docs/5.5/upgrade

  1. Follow the guide按照指南
  2. Change the code更改代码
  3. Test your code测试你的代码

https://laravel.com/docs/5.6/upgrade https://laravel.com/docs/5.6/upgrade

  1. Follow the guide按照指南
  2. Change the code更改代码
  3. Test your code测试你的代码

And so on.等等。 Depends on the size of your project.取决于你的项目的大小。 Go to the github pages of your third party packages to check if they have updated as well. Go 到您的第三方软件包的 github 页面,以检查它们是否也已更新。 You can always change the package.您可以随时更改 package。

It will be a pain in the ass, but it's possible.这将是一个痛苦的屁股,但这是可能的。 (Don't forget the php version.) (不要忘记 php 版本。)

Good luck!祝你好运!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM