简体   繁体   English

尝试更新时,laravel composer更新失败

[英]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 . Illuminate / Html已被弃用,你可以在这里看到它。 Now as the authors of this package said you should use laravelcollective/html 现在这个包的作者说你应该使用laravelcollective / html

composer require laravelcollective/html

Then in config.app in providers array: 然后在providers数组中的config.app中:

Collective\Html\HtmlServiceProvider::class,

And in aliases array in same file: 并且在同一个文件中的别名数组中:

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

Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何将Composer软件包中的Illuminate依赖更新为Laravel 5 - How to update Illuminate dependecies in Composer package to Laravel 5 更新作曲家(Laravel 5.1)后找不到类Illuminate \\ Support \\ Composer - Class Illuminate\Support\Composer not found after composer update (Laravel 5.1) Laravel作曲家更新在Windows上失败并显示mbstring - Laravel composer update fail with mbstring on Windows 作曲家更新时Laravel 5出错 - Laravel 5 error when composer update Laravel - 5.2.45 - 作曲家更新错误后 - Laravel 5.2 Trait 'Illuminate\\Foundation\\Auth\\AuthenticatesUsers' 未找到 - Laravel - 5.2.45 - After composer update error - laravel 5.2 Trait 'Illuminate\Foundation\Auth\AuthenticatesUsers' not found 为什么作曲家更新会导致laravel应用在重定向时失败 - why composer update causes laravel app to fail on redirects 如何修复 Laravel composer 更新问题(Illuminate\\Foundation\\ComposerScripts::postAutoloadDump failed to open stream: No such file or directory) - How to fix laravel composer update issue ( Illuminate\Foundation\ComposerScripts::postAutoloadDump failed to open stream: No such file or directory) 尝试更新作曲家时出现 API 错误和 php - API error when trying to update composer and php Laravel 5.2作曲家更新 - Laravel 5.2 composer update Laravel更新被作曲家打破 - Laravel update broke by composer
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM