title: How to deal with Class not found with composer
body: <p>I installed composer and laravel and installed some packages<br>
  all work fine, but now I created my own class under the folder services<br>
  I gave it name space of Services like that:</p>
  
  <p>namespace Services;</p>
  
  <p>And the class name is <code>UploadToImgurService</code></p>
  
  <p>I run the composer command:</p>
  
  <pre><code> composer dump-autoload
  </code></pre>
  
  <p>And in my controller I wrote:</p>
  
  <pre><code> use Services\UploadToImgurService;
  </code></pre>
  
  <p>But I get this error:</p>
  
  <pre><code> Class 'Services\UploadToImgurService' not found
  </code></pre>
  
  <p>What did I did wrong?
  Is there anything else that I should do with composer for autoloading the service class?</p>
  
  <p><strong>EDIT</strong>
  I found a solution<br>
  I edited y composer.json file and added to psr-4 the line</p>
  
  <pre><code>     "Services\\" : "app/services"
  </code></pre>
  
  <p>But why It didn't workt before? The line :</p>
  
  <pre><code> "App\\": "app/",
  </code></pre>
  
  <p>was there, maybe it loaded the class but under the app namespace?</p>