![](/img/trans.png)
[英]How to update Illuminate dependecies in Composer package to Laravel 5
[英]laravel composer update fail when trying to update illuminate
當我試圖更新照明,但失敗了。
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:
請幫我。
Illuminate / Html已被棄用,你可以在這里看到它。 現在這個包的作者說你應該使用laravelcollective / html
composer require laravelcollective/html
然后在providers數組中的config.app中:
Collective\Html\HtmlServiceProvider::class,
並且在同一個文件中的別名數組中:
'Form' => Collective\Html\FormFacade::class,
'Html' => Collective\Html\HtmlFacade::class,
希望這可以幫助。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.