Created
March 25, 2015 05:08
-
-
Save wedojava/50d991c0721ed4eeafdd to your computer and use it in GitHub Desktop.
Fix “Class ‘Form’ or ‘HTML’ not found” in Laravel 5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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