Laravel Collective不起作用

时间:2015-10-06 20:04:32

标签: composer-php laravel-5.1

我正在尝试使用Laracasts学习Laravel,这非常有趣。 在创建表单的步骤中,我想使用Laravel Collective。所以我去了网站http://laravelcollective.com/docs/5.1/html并尝试了所写的内容,但我收到以下错误:

FatalErrorException in ProviderRepository.php line 146:
Class 'Collective\Html\HtmlServiceProvider' not found

这是我的代码:

app.php

'providers' => [    
    ...
    Illuminate\View\ViewServiceProvider::class,
    Collective\Html\HtmlServiceProvider::class,
    ...
],
'aliases' => [
    ...
    'View'      => Illuminate\Support\Facades\View::class,
    'Form'      => Collective\Html\FormFacade::class,
    'Html'      => Collective\Html\HtmlFacade::class
],

composer.json

"require": {
    "php": ">=5.5.9",
    "laravel/framework": "5.1.*",
    "laravelcollective/html": "5.1.*"
},

知道我能做些什么来解决我的问题吗?

0 个答案:

没有答案
相关问题