从6.0升级到9.0时,最好的方法是什么?
从Laravel 6升级到9时,最好去6-> 7 - > 8-> 9还是一个可以安全地从6次跳到9?
When upgrading from laravel 6 to 9 is it better to go 6 -> 7 -> 8 -> 9 or one can safely jump from 6 to 9?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是指哪个升级指南遵循或如何技术上升级?
您需要确保处理7、8和9中引入的所有更改,因此您需要单独阅读所有升级指南。
但是从技术上讲,您可以从6到9跳。
我个人更喜欢启动一个新的项目,然后逐渐将我的代码库应用于它。这样一来,您最终也会使用一个新的样板,因为有时新的Laravel版本会在项目root中引入新的有用文件。
Do you mean which upgrade guides to follow or how to technically upgrade?
You need to make sure you handle all changes introduced in 7, 8 and 9, so you'd need to read every upgrade guide separately.
But technically you can jump from 6 to 9.
I personally prefer to start a fresh project and then apply my codebase to it, gradually. That way you end up having a new boilerplate as well, as sometimes new Laravel versions introduce new useful files in the project root.