我已经安装了此处定义的 laravelcollective/html:http: //laravelcollective.com/docs/5.1/html。
Composer.json 的要求是:
"require": {
"php": ">=5.5.9",
"laravel/framework": "5.1.*",
"shpasser/gae-support-l5": "~1.0",
"laravelcollective/html": "5.1.*"
},
Ran composer update,它更新了很多模块。
app.php 的 providers 数组包括:
App\Providers\AppServiceProvider::class,
App\Providers\EventServiceProvider::class,
App\Providers\RouteServiceProvider::class,
Shpasser\GaeSupportL5\GaeSupportServiceProvider::class,
Collective\Html\HtmlServiceProvider::class,
在别名数组中我有:
'Form' => Collective\Html\FormFacade::class,
'Html' => Collective\Html\HtmlFacade::class,
我试过运行:
composer dump-autoload
php artisan clear-compiled
我什至尝试删除供应商文件夹并使用重新安装
composer install
但我仍然收到错误:
WARNING: local.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Class 'Form' not found'
有任何想法吗?