简体   繁体   中英

laravel composer update fail when trying to update illuminate

When i tried to update illuminate like that but failed.

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

it showed that error,

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:   

please help me.

Illuminate/Html has been deprecated, you can see it here . Now as the authors of this package said you should use laravelcollective/html

composer require laravelcollective/html

Then in config.app in providers array:

Collective\Html\HtmlServiceProvider::class,

And in aliases array in same file:

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

Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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