title: Laravel 5 Package, Class not found
body: <p>I have a package folder in which I'm creating a class to help me with an API.
  But I'm getting the following error</p>
  
  <blockquote>
    <p>Class 'Notflip\Teamleader\Company' not found</p>
  </blockquote>
  
  <p>I'm trying to access a the Company class by using</p>
  
  <pre><code>$companies = new Teamleader\Company();
  </code></pre>
  
  <p>This is my folder structure</p>
  
  <p><img src="https://i.stack.imgur.com/G0G3C.jpg" alt="enter image description here"></p>
  
  <p>This is my composer.json in my project root</p>
  
  <pre><code>    "psr-4": {
          "App\\": "app/",
          "Notflip\\Teamleader\\": "package/Notflip/Teamleader/src"
      }
  </code></pre>
  
  <p>This is my Company class</p>
  
  <pre><code>&lt;?php namespace Notflip\Teamleader;
  
  use Notflip\Teamleader;
  
  class Company extends Teamleader {
  
      public function all()
      {
          return $this-&gt;api("getCompanies", ['amount' =&gt; 20,'pageno' =&gt; 0]);
      }
  
  }
  </code></pre>