2016-08-23 25 views
5

Tôi muốn cập nhật Laravel lên phiên bản mới nhất 5.3.Nâng cấp từ Laravel 5.2 lên Laravel 5.3

Tôi đang kiểm tra official guide, nhưng tôi không thấy cách thực sự nâng cấp mã thông qua nhà soạn nhạc.

Khi tôi cố cập nhật tệp composer.json để trỏ tới laravel/framework 5.3. *.

tôi nhận được:

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]. 

Làm thế nào tôi nên cập nhật ???

Tx

+0

nó là tốt hơn nếu bạn có thể tải xuống các tệp phiên bản 5.3 của laravel và bắt đầu dự án của bạn với runnng tệp composer.json đã cho. Phải không? – Kalanka

Trả lời

15

Bạn cần phải cập nhật các LaravelCollective html package là tốt.

Trong composer.json của bạn, thay thế:

"laravelcollective/html": "5.2.*" 

với:

"laravelcollective/html": "5.3.*" 


(đừng quên dấu phẩy dấu nếu có)

+0

cảm ơn rất nhiều! làm việc cho tôi – finalpets

Các vấn đề liên quan