title: Laravel 5.1: Class html does not exist
body: <p>I am upgrading from 4.2 directly to 5.1 and run into problems with the Html and Form classes.</p>
  
  <p>I followed the upgrade notes, and did</p>
  
  <ul>
  <li>add "laravelcollective/html": "~5.0" to composer.json</li>
  <li>composer update</li>
  <li>add  Collective\Html\HtmlServiceProvider::class to providers in app.php</li>
  <li>add Form' => Collective\Html\FormFacade::class,
    Html' => Collective\Html\HtmlFacade::class to aliases in app.php</li>
  </ul>
  
  <p>But my views don't work. I get either <code>Class HTML does not exist</code> when using HTML::router or get <code>Class html does not exist</code> when using link_to_route</p>
  
  <p>I also tried <code>Illuminate\html</code> instead of <code>laravelcollective</code>, I did a <code>composer dump-autoload</code>.</p>
  
  <p>The complete errors:</p>
  
  <pre><code>ErrorException in Container.php line 736: Class html does not exist (View: C:\Dev\www\admin\resources\views\clubs\index.blade.php)
  ReflectionException in Container.php line 736: Class html does not exist
  </code></pre>
  
  <p>What am I missing?</p>
  
  <hr>
  
  <p><em>I tried everyone's answers and none of them worked for me for some reason. Ultimately I created a completely new laravel application, copied my code and then it started working, So though solved the actual problem remains a mystery.</em></p>