title: Artisan not able to detect application namespace
body: <p>Very recently, my application stopped working properly for some reason and I had to change my application namespace, so it is projectname\Model instead of App\Model.</p>
  
  <p>Now after this change, everything started working normally, except php artisan commands.</p>
  
  <p>When I call <code>php artisan</code>, I can have the lists of artisan commands but none works, I always get <code>[RuntimeException] Unable to detect application namespace.</code>. 
  For exemple, I tried running <code>php artisan make:controller ShoppingCartController</code> and I get this error.</p>
  
  <p>I looked online and a lot of people say it's a problem with the composer.json, but I tried <code>composer diagnose</code> and nothing stands out, and I updated composer and also tried <code>composer dump-autoload</code>.</p>
  
  <p>And in my composer.json, I have this part I changed recently:</p>
  
  <pre><code>"autoload": {
      "classmap": [
          "database"
      ],
      "psr-4": {
          "projectName\\": "App/"
      }
  },
  </code></pre>
  
  <p>And I carefully looked to be sure there was no extra comma in the .json.</p>
  
  <p>I'd like to still be able to use php artisan commands so I'd like to solve this.</p>
  
  <p>Thanks,</p>