Call to undefined method Illuminate\Foundation\Application::bindShared()
来源:互联网 发布:数控车床初级编程视频 编辑:程序博客网 时间:2024/06/06 02:19
照之前的方法composer一个叫illuminate/html的Package,使用中发现不能用,并且composer update的时候会抛出错误:
[Symfony\Component\Debug\Exception\FatalErrorException]Call to undefined method Illuminate\Foundation\Application::bindShared()
原因:
网上查到说5.1以后不支持了,然后就移除illuminate/html在config/app.php中的配置项
providers中的
'Illuminate\Html\HtmlServiceProvider'
aliases中的
'Form' => 'Illuminate\Html\FormFacade','HTML' => 'Illuminate\Html\HtmlFacade
再执行
composer remove illuminate/htmlcomposer update
5.1以后用laravelcollective/html 这个package替换了。
composer require laravelcollective/html
在/config/app.php的providers数组中添加下面的这句
Collective\Html\HtmlServiceProvider::class,
在/config/app.php的aliases数组中添加下面的这两句
'Form'=>Collective\Html\FormFacade::class,'Html'=>Collective\Html\HtmlFacade::class,
Author:leedaning
本文地址:http://blog.csdn.net/leedaning/article/details/72189122
阅读全文
0 0
- Call to undefined method Illuminate\Foundation\Application::bindShared()
- Call to undefined method Illuminate\Database\Query\Builder::links()
- Call to undefined method Memcached::connect()
- Fatal error: Class 'Illuminate\Foundation\Application' not found
- Magento: Fatal error: Call to undefined method Mage_Adminhtml_Block_Abstract::getexceptions()
- Fatal error: Call to undefined method stdClass::onDisplay()
- yii2安装时报错 Call to undefined method Fxp
- memcached出现:Fatal error: Call to undefined method Memcached::connect()
- composer 錯誤Call to undefined method Composer\Package\RootPackage::getConfig
- [李景山php]每天laravel[006]-vendor/laravel/framework/src/ILLuminate/Foundation/Application.php
- joomla中碰到Call to undefined method JDocumentRAW::addCustomTag()的错误
- Laravel4.0使用redis,报错Call to undefined method Redis::connection()
- 解决Laravel5.1使用composer update时出现Call to undefined method getCachedCompilePath()错误
- 当我加载配置文件时报错:Call to undefined method CI_Config::config()
- Cannot call method 'indexOf' of undefined
- cannot call method foreach of undefined问题
- PHP连接Mysql报错 Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /Application
- Call to undefined function mysql_create_db()
- SQLServer中char、varchar、nchar、nvarchar的区别
- Android/Html图文混排
- load 和 initialize
- 遇到的问题的总结
- Android view之点赞容易,取消不易
- Call to undefined method Illuminate\Foundation\Application::bindShared()
- map去重(不打乱存入顺序)
- LeetCode 115. Distinct Subsequences
- c++中的Raw String的Macro用法
- 搭建网站
- JsonObject生成Json字符串有转意字符
- 自己同学遇到的问题
- UVA11475
- Android Gson中的Map与JSON相互切换