title: Composer auto generated wrong path
body: <p>I am building a website with Laravel 5.
  Laravel is using Composer as dependency management.</p>
  
  <p>Whenever I run <code>composer dump-autoload</code> the autoload classes are generated.
  Unfortunately the path in two of these files are wrong.</p>
  
  <p>I am using one Seed class and some migrations within Laravel which is located in <code>database/seeds</code> respectively <code>database/migrations</code>.</p>
  
  <p>The generated paths to all classes (migrations, seeds) below the database folder is wrong.
  The path looks like <code>$baseDir . '/atabase/migrations/2017_02_02_153131_create_cards_table.php'</code>
  As you can see the "d" from "database" is missing.</p>
  
  <p>As far as I know the autoload classes are defined in the <code>composer.json</code> file.
  But here it seems to be correct: </p>
  
  <pre><code>    "autoload": {
      "classmap": [
          "database"
      ],
      "psr-4": {
          "App\\": "app/"
      }
  }
  </code></pre>
  
  <p>The migration is working, but the seeds are not.
  When I do a search&amp;replace and correct the path everything is fine unless I do <code>composer dump-autoload</code></p>
  
  <p>I am developing on a Windows 10 machine with Laravel 5.4.8 and Composer 1.3.2.</p>
  
  <hr>
  
  <p>Edit:
  Here is the output of <code>composer dump-autoload -vvv</code></p>
  
  <pre><code>PS C:\Users\phoef\Documents\Projekte\CardViewer&gt; composer dump-autoload -vvv 
  Reading ./composer.json
  Loading config file ./composer.json
  Checked CA file C:\Users\phoef\AppData\Local\Temp\composer-cacert-    300c74d6960d46715ffed607c8e36acfa7cbcad49862bb1b67d3c43dea9bfb40.pem: valid
  Executing command (C:\Users\phoef\Documents\Projekte\CardViewer): git branch --no-color --no-abbrev -v
  Reading C:/Users/phoef/AppData/Roaming/Composer/composer.json
  Loading config file C:/Users/phoef/AppData/Roaming/Composer/composer.json
  Reading C:\Users\phoef\Documents\Projekte\CardViewer/vendor/composer/installed.json
  Reading C:/Users/phoef/AppData/Roaming/Composer/vendor/composer/installed.json
  Running 1.3.2 (2017-01-27 18:23:41) with PHP 7.1.1 on Windows NT / 10.0
  Generating autoload files
  </code></pre>
  
  <p>The two files containg the wrong path are: <code>autoload_classmap.php</code> and <code>autoload_static.php</code>.</p>
  
  <hr>
  
  <p>Edit 2:
  Please find below the complete <code>composer.json</code></p>
  
  <pre><code>{
  "name": "laravel/laravel",
  "description": "The Laravel Framework.",
  "keywords": ["framework", "laravel"],
  "license": "MIT",
  "type": "project",
  "require": {
      "php": "&gt;=5.6.4",
      "laravel/framework": "5.4.*",
      "laravel/tinker": "~1.0"
  },
  "require-dev": {
      "fzaninotto/faker": "~1.4",
      "mockery/mockery": "0.9.*",
      "phpunit/phpunit": "~5.7"
  },
  "autoload": {
      "classmap": [
          "database"
      ],
      "psr-4": {
          "App\\": "app/"
      }
  },
  "autoload-dev": {
      "psr-4": {
          "Tests\\": "tests/"
      }
  },
  "scripts": {
      "post-root-package-install": [
          "php -r \"file_exists('.env') || copy('.env.example', '.env');\""
      ],
      "post-create-project-cmd": [
          "php artisan key:generate"
      ],
      "post-install-cmd": [
          "Illuminate\\Foundation\\ComposerScripts::postInstall",
          "php artisan optimize"
      ],
      "post-update-cmd": [
          "Illuminate\\Foundation\\ComposerScripts::postUpdate",
          "php artisan optimize"
      ]
  },
  "config": {
      "preferred-install": "dist",
      "sort-packages": true
     }
  }
  </code></pre>