Search code examples
phplaravellaravel-5.1laravelcollective

Laravel 5.1: Laravelcollective 'Form' not found


I have installed laravelcollective/html as defined here: http://laravelcollective.com/docs/5.1/html.

Composer.json's require is:

    "require": {
    "php": ">=5.5.9",
    "laravel/framework": "5.1.*",
    "shpasser/gae-support-l5": "~1.0",
    "laravelcollective/html": "5.1.*"
},

Ran composer update, which updated a lot of modules.

app.php's providers array includes:

    App\Providers\AppServiceProvider::class,
    App\Providers\EventServiceProvider::class,
    App\Providers\RouteServiceProvider::class,
    Shpasser\GaeSupportL5\GaeSupportServiceProvider::class,
    Collective\Html\HtmlServiceProvider::class,

and in the aliases array I have:

    'Form'      => Collective\Html\FormFacade::class,
    'Html'      => Collective\Html\HtmlFacade::class,

I've tried running:

composer dump-autoload
php artisan clear-compiled

and I've even tried deleting the vendor folder and reinstalling using

composer install

But still I'm getting the error:

WARNING: local.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Class 'Form' not found'

Any ideas?


Solution

  • I've somewhat managed to fix my issue. I believe it was stemming from something messing up when I ran "composer update" and it was updating other components. So starting with a fresh install of laravel, fully updated, and copying the current classes and views in seems to have fixed it.