3

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:

  • After laravel 5 installation, I added FormFacade to laravel.
  • 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

  • Checked if I actually downloaded the files

All of this is done, but still I cannot find whats going wrong. I searched for help but nothing seems to work.

Search effort:

Still no luck. Have I missed something?

PS: I'm running on windows.

Community
  • 1
  • 1
SBD
  • 446
  • 6
  • 17

1 Answers1

3

Those aliases are wrong. You should use the facades from Illuminate\Html:

'Html' => 'Illuminate\Html\HtmlFacade',
'Form' => 'Illuminate\Html\FormFacade',
lukasgeiter
  • 147,337
  • 26
  • 332
  • 270