简体   繁体   English

如何将laravel 5.0项目直接升级到5.4?

[英]how can I upgrade my project of laravel 5.0 directly to 5.4?

There is an old project made in laravel 5.0.35 framework by some other developer, now my job is to add some new features to that project but I am familiar with laravel 5.4 so what I think would be good aproach is that I upgrade this project in 5.4 then do my work. 有一个其他开发人员在laravel 5.0.35框架中做了一个旧项目,现在我的工作是为该项目添加一些新功能,但是我对laravel 5.4很熟悉,所以我认为最好的办法是升级该项目然后在5.4中做我的工作。 But I don't know how to do it. 但是我不知道该怎么做。 PS I have seen laravel upgrade docs in which they upgrade version by version. PS我见过laravel升级文档,其中他们逐个版本升级。 Is it possible to upgrade this project directly to laravel 5.4 skipping that version by version upgradation? 是否可以将该项目直接升级到laravel 5.4,而不通过版本升级跳过该版本?

in your laravel directory type 在您的laravel目录中键入

composer update

and it will be update your laravel project 它将更新您的laravel项目

there is a composer.json file in root and you can find version of your laravel 根目录中有一个composer.json文件,您可以找到laravel的版本

"laravel/framework": "5.4.*",

it shows dependencies that you want to upgrade 它显示您要升级的依赖项

dont forget to get backup before upgrade 升级前不要忘记获取备份

Ya you can update it but folder structure is changed in laravel 5.4. 是的,您可以更新它,但是在laravel 5.4中更改了文件夹结构。 so you can face problem in it. 这样您就可以面对问题了。 Go in composer.json and change the laravel version then update composer with command . 进入composer.json并更改laravel版本,然后使用command更新composer。

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

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