title: Composer class not found even if it exists
body: <p>I'm developing a Laravel package but I have a problem with composer autoloading.
  My package has 2 folders under <code>src</code> folder. One of them is named <code>Laravel</code> and the other one is <code>Telegram</code>. Here is the package structure:</p>
  
  <pre><code>./packages
  .../typhoon
  ...../src
  ......./Laravel
  ........./Providers
  ............LumenServiceProvider.php
  ............LaravelServiceProvider.php
  ......./Telegram
  ..........Api.php
  .....composer.json
  </code></pre>
  
  <p>This package is developed under <code>SaliBhdr/Typhoon</code> namespace.</p>
  
  <p>I have added the <code>packages/typhoon/src</code> directory in Laravel's composer file like so:</p>
  
  <pre><code>    "autoload": {
          "psr-4": {
              "App\\": "app/",
              "SaliBhdr\\Typhoon\\" : "packages/typhoon/src/"
          }
      },
  </code></pre>
  
  <p>And add the <code>src/</code> address in package composer.json file like so:</p>
  
  <pre><code>    "autoload": {
          "psr-4": {
              "SaliBhdr\\Typhoon\\": "src/"
          }
      },
  </code></pre>
  
  <p>Here is the strange behavior begins. When I execute the <code>php artisan serve</code> command Laravel throws an error that says :</p>
  
  <pre><code> Class 'Salibhdr\Typhoon\Laravel\Providers\LumenServiceProvider' not found 
  </code></pre>
  
  <p>And if I check if the class exists with <code>class_exists('Salibhdr\Typhoon\Laravel\Providers\LumenServiceProvider')</code> function it returns <code>false</code>. But if I check if <code>Salibhdr\Typhoon\Telegram\Api</code> exists it returns <code>true</code>.</p>
  
  <p>I checked the <code>autoload_classmap</code> file and notice that the composer includes all the classes under <code>Telegram</code> subfolder but not <code>Laravel</code> subfolder.</p>
  
  <p>Why composer acts weird like this? why did it include one subfolder and not the other? It is something that I do every day and never seen anything like this.</p>
  
  <p>I desperately need help. Any help would be appreciated</p>