title: Laravel RuntimeException Could not scan for classes inside "database" which does not appear to be a file nor a folder
body: <p>I am trying to run command     </p>
  
  <pre><code>composer update 
  </code></pre>
  
  <p>getting this error message:                                                                                               </p>
  
  <blockquote>
    <p>[RuntimeException]
    Could not scan for classes inside "database" which does not appear to
    be a file nor a folder</p>
  </blockquote>
  
  <p>This is the code inside my <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.5.9",
      "laravel/framework": "5.2.*",
      "jenssegers/mongodb": "^2.0",
  
  "lucadegasperi/oauth2-server-laravel": "^5.1",
  
  "laravelcollective/html": "5.2.*",
  
  "davibennun/laravel-push-notification": "dev-laravel5"
  },
  "require-dev": {
      "fzaninotto/faker": "~1.4",
      "mockery/mockery": "0.9.*",
      "phpunit/phpunit": "~4.0",
      "symfony/css-selector": "2.8.*|3.0.*",
      "symfony/dom-crawler": "2.8.*|3.0.*"
  },
  "autoload": {
      "classmap": [
          "database"
      ],
      "psr-4": {
          "App\\": "app/"
      }
  },
  "autoload-dev": {
      "classmap": [
          "tests/TestCase.php"
      ]
  },
  "scripts": {
      "post-root-package-install": [
          "php -r \"copy('.env.example', '.env');\""
      ],
      "post-create-project-cmd": [
          "php artisan key:generate"
      ],
      "post-install-cmd": [
          "php artisan clear-compiled",
          "php artisan optimize"
      ],
      "post-update-cmd": [
          "php artisan clear-compiled",
          "php artisan optimize"
      ]
  },
  "config": {
      "preferred-install": "dist"
  }
  
  }
  </code></pre>