Reputation: 446
Ok, this is driving me mad. I'm trying to include forms functionalities with FormFacade with Laravel 5, but I keep getting this error:
Class 'Illuminate\Support\Facades\FormFacade' not found
I'll write down what I have done:
Updated the app.php file with the following lines:
Providers:
'Illuminate\Html\HtmlServiceProvider',
Aliases:
'Form' => 'Illuminate\Support\Facades\FormFacade',
'Html' => 'Illuminate\Support\Facades\HtmlFacade',
Then, I checked my composer.json file:
"require": {
"laravel/framework": "5.0.*",
"illuminate/html": "~5.0"
},
Did a composer update
All of this is done, but still I cannot find whats going wrong. I searched for help but nothing seems to work.
Search effort:
Laracasts tutorial
Class 'Illuminate\Html\HtmlServiceProvider' not found Laravel 5
Still no luck. Have I missed something?
PS: I'm running on windows.
Upvotes: 3
Views: 4558
Reputation: 152850
Those aliases are wrong. You should use the facades from Illuminate\Html
:
'Html' => 'Illuminate\Html\HtmlFacade',
'Form' => 'Illuminate\Html\FormFacade',
Upvotes: 3