标签:bind UI erro for fatal define log ror cep
报错内容
[Symfony\Component\Debug\Exception\FatalErrorException] Call to undefined method Illuminate\Foundation\Application::bindShared()
查了一下,大概是说Laravel5.1后,illuminate/html 已经被废弃了,可以使用 laravelcollective/html 来替换
首先删除 illuminate/html在config/app.php 中添加的配置
‘Illuminate\Html\HtmlServiceProvider‘ ‘Form‘ => ‘Illuminate\Html\FormFacade‘, ‘HTML‘ => ‘Illuminate\Html\HtmlFacade
然后执行以下命令移除illuminate/html
composer remove illuminate/html
composer update
成功后,使用新的Package来替换,执行以下命令
composer require laravelcollective/html
同样,将以下配置项添加到 illuminate/html在config/app.php 中
# providers Collective\Html\HtmlServiceProvider::class, # aliases ‘Form‘=>Collective\Html\FormFacade::class, ‘Html‘=>Collective\Html\HtmlFacade::class,
OK。
使用illuminate/html 提示: Call to undefined method Illuminate\Foundation\Application::bindShared()
标签:bind UI erro for fatal define log ror cep
原文地址:http://www.cnblogs.com/jialongfei/p/7723050.html