2016-07-16 168 views
1

當我試圖更新照明,但失敗。laravel作曲家更新失敗,當試圖更新照明

sudo composer.phar require "illuminate/html":"5.0.*" 

它表明錯誤,

Script php artisan optimize handling the post-update-cmd event returned with an error 

Installation failed, reverting ./composer.json to its original content. 


[RuntimeException] 
Error Output: 

請幫助我。

+0

你的意思是不顯示任何訊息? –

+0

調用未定義的方法Illuminate \ Foundation \ Application :: bindShared() –

回答

0

Illuminate/Html已被棄用,您可以瀏覽它here。現在,作爲這個包的作者說,你應該在config.app提供商使用laravelcollective/HTML

composer require laravelcollective/html 

然後陣列:

Collective\Html\HtmlServiceProvider::class, 

而且在別名陣列同一個文件:

'Form' => Collective\Html\FormFacade::class, 
'Html' => Collective\Html\HtmlFacade::class, 

希望這有助於。

+0

Thx但它沒有。 –

+0

仍然有這個問題。調用未定義的方法Illuminate \ Foundation \ Application :: bindShared() –

+0

但至少你安裝了類似的包沒有問題,不是嗎? :)。嘗試提供的解決方案[這裏](https://laracasts.com/discuss/channels/laravel/call-to-undefined-method-illuminatefoundationapplicationbindshared)出現該錯誤 – suarsenegger