简体   繁体   English

从 Laravel 5.2 升级到 Laravel 5.3

[英]Upgrade from Laravel 5.2 to Laravel 5.3

I want to update Laravel to the latest version 5.3.我想将 Laravel 更新到最新版本 5.3。

I'm checking the official guide , but I don't see how to actually upgrade the code through composer.我正在查看官方指南,但我不知道如何通过 Composer 实际升级代码。

When I try to update composer.json file to point to laravel/framework 5.3.*.当我尝试更新 composer.json 文件以指向laravel/framework 5.3.* 时。

I get:我得到:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - laravelcollective/html v5.2.4 requires illuminate/view 5.2.* -> satisfiable by laravel/framework[v5.2.44], illuminate/view[v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.32, v5.2.37, v5.2.43, v5.2.6, v5.2.7].
    - laravelcollective/html v5.2 requires illuminate/view 5.2.* -> satisfiable by laravel/framework[v5.2.44], illuminate/view[v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.32, v5.2.37, v5.2.43, v5.2.6, v5.2.7].
    - laravelcollective/html v5.2.1 requires illuminate/view 5.2.* -> satisfiable by laravel/framework[v5.2.44], illuminate/view[v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.32, v5.2.37, v5.2.43, v5.2.6, v5.2.7].
    - laravelcollective/html v5.2.2 requires illuminate/view 5.2.* -> satisfiable by laravel/framework[v5.2.44], illuminate/view[v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.32, v5.2.37, v5.2.43, v5.2.6, v5.2.7].
    - laravelcollective/html v5.2.3 requires illuminate/view 5.2.* -> satisfiable by laravel/framework[v5.2.44], illuminate/view[v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.32, v5.2.37, v5.2.43, v5.2.6, v5.2.7].
    - laravelcollective/html v5.2.4 requires illuminate/view 5.2.* -> satisfiable by laravel/framework[v5.2.44], illuminate/view[v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.32, v5.2.37, v5.2.43, v5.2.6, v5.2.7].
    - Can only install one of: laravel/framework[v5.3.0, v5.2.44].
    - don't install illuminate/view v5.2.0|don't install laravel/framework v5.3.0
    - don't install illuminate/view v5.2.19|don't install laravel/framework v5.3.0
    - don't install illuminate/view v5.2.21|don't install laravel/framework v5.3.0
    - don't install illuminate/view v5.2.24|don't install laravel/framework v5.3.0
    - don't install illuminate/view v5.2.25|don't install laravel/framework v5.3.0
    - don't install illuminate/view v5.2.26|don't install laravel/framework v5.3.0
    - don't install illuminate/view v5.2.27|don't install laravel/framework v5.3.0
    - don't install illuminate/view v5.2.28|don't install laravel/framework v5.3.0
    - don't install illuminate/view v5.2.31|don't install laravel/framework v5.3.0
    - don't install illuminate/view v5.2.32|don't install laravel/framework v5.3.0
    - don't install illuminate/view v5.2.37|don't install laravel/framework v5.3.0
    - don't install illuminate/view v5.2.43|don't install laravel/framework v5.3.0
    - don't install illuminate/view v5.2.6|don't install laravel/framework v5.3.0
    - don't install illuminate/view v5.2.7|don't install laravel/framework v5.3.0
    - Installation request for laravel/framework 5.3.* -> satisfiable by laravel/framework[v5.3.0].
    - Installation request for laravelcollective/html 5.2.* -> satisfiable by laravelcollective/html[v5.2, v5.2.1, v5.2.2, v5.2.3, v5.2.4].

How should I update?我应该如何更新?

You have to update the LaravelCollective html package as well.您还必须更新 LaravelCollective html 包

In your composer.json , replace:在您的composer.json ,替换:

"laravelcollective/html": "5.2.*"

with:与:

"laravelcollective/html": "5.3.*"


(don't forget the trailing comma if there is one) (如果有逗号,请不要忘记结尾的逗号)

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

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