1

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?

Limon Monte
  • 52,539
  • 45
  • 182
  • 213
pyy
  • 893
  • 1
  • 8
  • 22
  • 1
    You may need to add a backslash to find the `Form` facade, like this: `\Form` – lowerends Aug 14 '15 at 09:42
  • @lowerends is that in the aliases array? – pyy Aug 14 '15 at 09:48
  • No. Do you have more info on where the error is thrown? Which file and line? – lowerends Aug 14 '15 at 09:51
  • @lowerends 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 I'm starting with a fresh install of laravel, fully updated, and I'll copy my current classes and views in. Thanks for your help though! – pyy Aug 14 '15 at 10:50
  • 1
    Good to know you solved it. You may want to answer to yourself and mark this question as answered. – lowerends Aug 14 '15 at 11:06

1 Answers1

0

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.

pyy
  • 893
  • 1
  • 8
  • 22