title: Laravel ERROR: Class 'Collective\Html\HtmlServiceProvider' not found after running composer require laravelcollective/html in CMD
body: <p><strong>NOTE:</strong> No answer from <a href="https://stackoverflow.com/questions/32795154/laravel-5-class-collective-html-htmlserviceprovider-not-found-on-aws">this thread</a> has helped me, so far. And, I think more than 4 hours of unproductive searching for solution finally validates me to ask further help...</p>
  
  <p>I was following <a href="https://laravelcollective.com/docs/5.3/html#form-model-binding" rel="nofollow noreferrer">this tutorial</a> in order to use a form in my Laravel project and allow me to save some user inputs in my database. As instructed, I executed this line via CMD:</p>
  
  <pre><code>composer require "laravelcollective/html":"^5.3.0"
  </code></pre>
  
  <p>Then, I've added these inside <strong>config/app.php</strong>:</p>
  
  <pre><code>'providers' =&gt; [
  // ...
    Collective\Html\HtmlServiceProvider::class,
  // ...
  ],
  
  'aliases' =&gt; [
  // ...
    'Form' =&gt; Collective\Html\FormFacade::class,
    'Html' =&gt; Collective\Html\HtmlFacade::class,
  // ...
  ],
  </code></pre>
  
  <p>In my <strong>view</strong>, I have this, just to check if everything is now ready to be used:</p>
  
  <pre><code>{!! Form::open([]) !!}
  {!! Form::text('name', @$name) !!}
  {!! Form::password('password') !!}
  {!! Form::submit('Send') !!}
  {!! Form::close() !!}
  </code></pre>
  
  <p><strong>But then, it gave me this error:</strong></p>
  
  <blockquote>
    <p>FatalThrowableError in ProviderRepository.php line 146:
    Class 'Collective\Html\HtmlServiceProvider' not found</p>
  </blockquote>
  
  <p>I even added this to <strong>my composer.json</strong>, just in case this might be the "missing ingredient":</p>
  
  <pre><code>"require": {
      "laravel/framework": "5.0.*",
      "laravelcollective/html": "~5.0"
  }
  </code></pre>
  
  <p>But it did not solve anything either.</p>
  
  <p>Please also note that I found two composer.json files: one inside...</p>
  
  <blockquote>
    <p>C:\xampp\htdocs\laravelproject</p>
  </blockquote>
  
  <p>and another inside...</p>
  
  <blockquote>
    <p>C:\xampp\htdocs\laravelproject\project</p>
  </blockquote>
  
  <p>... so I edited both.</p>
  
  <p><strong>Side Note:</strong> The "project" folder is where the "original" root files can be found (e.g. the folders app, config, resources, etc.. I have previously relocated them in order to remove the word "public" from my URL.</p>
  
  <p><strong>PS:</strong> I am very new to Laravel, Composer, and CMD. My only background is in PHP and CodeIgniter.</p>
  
  <p>Please help.</p>
  
  <p>I'm not sure if I should provide here the CMD result after running <strong>composer require "laravelcollective/html":"^5.3.0"</strong> (because it's 142 lines long), but I have a copy, just in case.</p>