2017-01-25 28 views
10

我正在使用Laravelcollective/html v5.3.0laravel 5.3。現在我正在使用laravel 5.4。我有使用Laravelcollective/html v5.3.0的表格。laravel 5.4:Laravelcollective/html v5.3.0需要照明/視圖5.3。*

composer require laravelcollective/html給了我以下錯誤:

Installation request for laravelcollective/html ^5.3 -> satisfiable by laravelcollective/html[v5.3.0]. 
-Conclusion: remove laravel/frameworkv5.4.0 
- Conclusion: don't install laravel/framework v5.4.0 

當要laravel 5.4支持Laravelcollective/html

+2

已經有變化了5.4

"laravelcollective/html": "dev-master" 

是'Laravelcollective/html' github頁面中的兩個問題文件。您可能需要檢查Cerlin Boss和PaladiN所說的 –

+2

是否正確。只是稍微改正你的問題,*當laravel 5.4支持Laravelcollective/html?*我想它應該是LaravelCollective/html支持Laravel 5.4 .. –

+0

是的,夥計們感謝 – Gammer

回答

18

更新:

的Laravelcollective/HTML已經更新到Laravel 5.4但文件中沒有任何的變化到現在。 如果你想看到拉請求時,它是在這裏:

https://github.com/LaravelCollective/html/pull/276

https://github.com/LaravelCollective/html/pull/284

只需使用:

composer require "laravelcollective/html":"^5.4" 

或者,

composer require laravelcollective/html 

如果你不不想指定版本並獲得相同的最新版本的LaravelCollective。

舊問題:

Laravelcollective/html v5.3.0需要Laravel 5.3,還沒有支持Laravel 5.4

laravelcollective/html v5.4正在懸而未決的問題:

https://github.com/LaravelCollective/html/pull/276

它可以合併的任何時間。

只要看看它。

編輯:

另外,您可以使用maddhatter's git倉庫,因爲他做了一個尚未在[email protected]:st3f/html.git庫提供了一些變化。

只需將其添加到您的composer.json

"repositories": [ 
     { 
      "type": "vcs", 
      "url": "https://github.com/maddhatter/html.git" 
     } 
], 
"require": { 
    "laravelcollective/html": "5.4.x-dev", 
} 

和運行

composer update

或者,如果你並不需要這些改變,你可以遵循Cerlin Boss答案

https://stackoverflow.com/a/41845331/3887342

+0

完美。謝謝,不會再發布這樣的問題:) – Gammer

+0

@Gamer解決方案已更新。現在'LaravelCollective'支持'Laravel 5.4' – PaladiN

+0

真棒好友,謝謝 – Gammer

4

注:當laravelcollective/html不支持laravel 5.4

對於您可以使用原點回購從拉請求5.4

配置回購dev的目的,這個答案被張貼

"repositories": { 
    "laravelcollective": { 
     "type": "vcs", 
     "url": "[email protected]:st3f/html.git" 
    } 
} 

若要自動添加此功能而無需手動編輯composer.json run,

composer config repositories.laravelcollective vcs [email protected]:st3f/html.git 

要求的dev-master因爲它一旦原始回購筆者版本爲5.4的支持,只是刪除vcs回購參考,並更改dev-master5.4

+0

兄弟我有點困難,如何配置回購? – Gammer

+0

它應該被添加到'composer.json'。或者,您可以在控制檯'composer config repositories.laravelcollective vcs [email protected]:st3f/html.git'中運行此命令 –