首先, 找到 composer.json替换
"illuminate/html": "^5.0"
为
"laravelcollective/html":"5.2.*"
接着命令行composer update
.
然后在config/app.php
找到:
'IlluminateHtmlHtmlServiceProvider::class'`
替换为
'CollectiveHtmlHtmlServiceProvider::class'
再然后找到:
'Form' => IlluminateHtmlFormFacade::class,
'Html' => IlluminateHtmlHtmlFacade::class,
替换为
'Form' => CollectiveHtmlFormFacade::class,
'Html' => CollectiveHtmlHtmlFacade::class,