Skip to content

Instantly share code, notes, and snippets.

@wedojava
Created March 25, 2015 05:08
Show Gist options
  • Save wedojava/50d991c0721ed4eeafdd to your computer and use it in GitHub Desktop.
Save wedojava/50d991c0721ed4eeafdd to your computer and use it in GitHub Desktop.
Fix “Class ‘Form’ or ‘HTML’ not found” in Laravel 5
If you’re upgrading from Laravel 4 to Laravel 5, you’re most likely going to come across one of these two errors:
Class ‘Form’ not found
or
Class ‘Html’ not found
This is a really simple fix. Open up your composer.json file and require:
“illuminate/html”: “~5.0″
Then open up config/app.php and add the Html service provider to the providers array:
‘Illuminate\Html\HtmlServiceProvider’,
Now scroll down to the aliases array and add the following:
‘Form’ => ‘Illuminate\Html\FormFacade’,
‘Html’ => ‘Illuminate\Html\HtmlFacade’,
That should do it!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment