title: Proper Namespacing in Laravel
body: <p>I'm trying to namespace my Models in Laravel, and also have them be autoloaded automagically like the normal models do in the root of app/models. <code>composer dump-autoload</code> works, but I don't want to run that after I create a new model.</p>
  
  <pre><code>#app/models/MyNamespace/Thing.php
  &lt;?php
  namespace App\Models\MyNamespace;
  class Thing {
      // ...
  }
  
  #app/routes.php
  &lt;?php
  Route::get('test', function(){
      $thing = new App\Models\MyNamespace\Thing;
  });
  </code></pre>
  
  <p>If I run <code>composer dump-autoload</code> everything is fine, otherwise I get a class not found exception.</p>
  
  <p>What can I do to make that kind of structure work without rebuilding the classmap every time I make a new class? I think PSR-0 is where your namespaces correlate directly with your directory structure, and it appears as though my classes are adhering to that...</p>
  
  <p>I've also tried using the Workbench which works great, but ideally I'd like to have, for ex: app/models/MyNamespace, app/models/AnotherNamespace.</p>