title: How do I add a Laravel command in a subfolder?
body: <p>So I'm trying to create a custom console command in Laravel 5.1 which does some helpful function for my project. I can do this fine when putting the console command in a file located at the base commands folder but not when I just to add a subdirectory.</p>
  
  <pre><code>'App\Console\Commands\SomeCustomCommandThatWorks',
  'App\Console\Commands\MySubNameSpace\CustomCommandThatFails',
  </code></pre>
  
  <p>So how do I add my command like <code>MySubNameSpace\Command</code>?</p>
  
  <p>Namespace doesn't appear to have any effect on this. The namespace of the command could be <code>App\Console\MySubNameSpace\MyCommand</code> or <code>App\Console\MyCommand</code> both fail if the file is located at <code>'App\Console\Commands\MySubNameSpace\MyCommand'</code>. The file also fails if located at <code>'App\Console\Commands\MyCommand'</code> with namespace <code>App\Console\MySubNameSpace\MyCommand</code>.</p>
  
  <p>Right now I get this error.</p>
  
  <pre><code>Class App\Console\Commands\DeletePhantomServers does not exist
  </code></pre>
  
  <p>I have tried running composer dumpautoload but to no success.</p>
  
  <p>Any help would be appreciated.
  <a href="https://i.stack.imgur.com/8xzND.png" rel="noreferrer"><img src="https://i.stack.imgur.com/8xzND.png" alt="enter image description here"></a></p>