title: Laravel 4.2 Composer install error: Could not scan for classes inside "app/models"
body: <p>In my Laravel 4.2 project I have moved my User model to a new directory within my app directory.</p>
  
  <pre><code>-app/
  
  --Acme/
  
  ---Users/
  
  ----User.php
  </code></pre>
  
  <p>I then removed the app/models directory</p>
  
  <p>I added this to my composer.json file</p>
  
  <pre><code>"autoload": {
      "classmap": [
          "app/commands",
          "app/controllers",
          "app/models",
          "app/database/migrations",
          "app/database/seeds",
          "app/tests/TestCase.php",
          "app/Acme/adminHelpers.php"
      ],
      "files": [
          "app/Acme/helpers.php",
          "app/Acme/adminHelpers.php"
      ],
      "psr-4": {
          "Acme\\": "app/Acme"
      }
  },
  </code></pre>
  
  <p>I also edited my app/auth.php file</p>
  
  <pre><code>/*
  |--------------------------------------------------------------------------
  | Authentication Model
  |--------------------------------------------------------------------------
  |
  | When using the "Eloquent" authentication driver, we need to know which
  | Eloquent model should be used to retrieve your users. Of course, it
  | is often just the "User" model but you may use whatever you like.
  |
  */
  
  'model' =&gt; 'app\Acme\Users\User',
  </code></pre>
  
  <p>I then ran <code>composer dump-autoload</code></p>
  
  <p>I'm now trying to install my Github repository using Laravel Forge but I keep getting this error:</p>
  
  <pre><code>...
  Writing lock file
  Generating autoload files
  
  
  
     [RuntimeException]                                                                              
    Could not scan for classes inside "app/models" which does not appear to be a file nor a folder 
  </code></pre>
  
  <p>Does anyone know why this is happening and how to fix?</p>