title: Laravel 5.6 Tinker Class '...' not found in Psy Shell code on line 1
body: <p>I'm trying to make a simple class in a fresh-installed Laravel. For this I have created a folder app/Convert and put the php-file there.  The class looks like this:</p>
  
  <pre><code>&lt;?php 
  
  namespace App\Convert;
  
  class Converter
  {
      public function __construct()
      {
          ...Code
      }
  }
  </code></pre>
  
  <p>Now when I try to access it from Tinker:</p>
  
  <pre><code>use App\Convert\Converter;
  new Converter;
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>PHP Fatal error:  Class 'App/Convert/Converter' not found in Psy Shell code on line 1
  </code></pre>
  
  <p>What am I doing wrong? As I understand laravel should autoexecute the files inside the app folder and it's subfolders or am I mistaken?</p>
  
  <p>EDIT:
  Sorry the first time I wrote it wrong (I just played around so much with the namespaces so I took the wrong version). The problem was actually that the file name was something else than Converter.php, so when I changed it to Converter.php things started to change. I would set the Devon's answer as the correct answer if he put it as an answer not comment. So write it here:</p>
  
  <p><strong>Name of the file containing class should be the same as the class name. And the path to the file is the same as the namespace path.</strong> (see the Matthew's comment below his answer)</p>