我有一个Laravel 5.2.12 项目(网站),这是一个大项目,它几乎已经完成......有没有简单的方法从 5.2.12 <更新Laravel / strong>到 5.2.31 而不影响项目(不影响已经完成的工作)?我怎么能这样做?
那么,问题是如何将现有项目的Laravel版本从 5.2.12 更新为 5.2.31 ?
编辑:这是我的composer.json:{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": ">=5.5.9",
"laravel/framework": "5.2.*",
"cartalyst/sentinel": "2.0.*",
"intervention/image": "^2.3",
"barryvdh/laravel-debugbar": "^2.2",
"slynova/laravel-commentable": "^2.0",
"barryvdh/laravel-ide-helper": "v2.2.2"
},
"require-dev": {
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~4.0",
"symfony/css-selector": "2.8.*|3.0.*",
"symfony/dom-crawler": "2.8.*|3.0.*"
},
"autoload": {
"classmap": [
"database"
],
"psr-4": {
"App\\": "app/"
}
},
"autoload-dev": {
"classmap": [
"tests/TestCase.php"
]
},
"scripts": {
"post-root-package-install": [
"php -r \"copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"php artisan key:generate"
],
"post-install-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"pre-update-cmd": [
"php artisan clear-compiled"
],
"post-update-cmd": [
"php artisan optimize"
]
},
"config": {
"preferred-install": "dist"
}
}
应该更改什么才能将Laravel更新为 5.2.31 (到最新的5.2版本)?
答案 0 :(得分:1)
更新df.ix[:, 0:-1] = df.ix[:, 0:-1].where(df == 0, df.FINAL_GRADE, axis=0)
以在您希望的版本上使用composer.json
。然后在命令行中运行laravel\laravel
。
您的项目不应该从composer update
更新到5.2.12
有任何问题,因为它们主要是错误修正。但请注意,其他依赖项可能会更新为新版本。因此,如果原因发生,您可能希望将它们设置为5.2.31
文件中的固定版本。