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


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:


Now scroll down to the aliases array and add the following:

‘Form’ => ‘Illuminate\Html\FormFacade’,
‘Html’ => ‘Illuminate\Html\HtmlFacade’,

That should do it!