title: Laravel: class App\Posts does not exists
body: <p>I have got this error so many times in Laravel as using model classes that says this class does not exists which it does. one of them was when i ran  <code>App\Post::count()</code> with <strong>tinker</strong> and got this:    </p>
  
  <blockquote>
    <p>PHP Fatal error:  Class 'App/Post' not found in Psy Shell code on line 1   </p>
  </blockquote>
  
  <p>and one was when i tried to seed the DB with model. this is the model content:    </p>
  
  <pre><code>namespace App;    
  use Illuminate\Database\Eloquent\Model;   
  class Dog extends Model
  {   
      //   
  } 
  </code></pre>
  
  <p>and this is the Seeder:</p>
  
  <pre><code>&lt;?php
  use Illuminate\Database\Seeder;
   use \App\Dog;   
  class DogsTableSeeder extends Seeder
  {
  /**
   * Run the database seeds.
   *
   * @return void
   */
      public function run()
      {
          Dog::query()-&gt;create(['name'=&gt;'jack']);
      }
  }
  </code></pre>
  
  <p>with this error: <strong>Class 'App\Dog' not found</strong>.and this is for every model i create.<br>
  any solution? (Laravel -V: 5.4, PHP -V: 7.2, Apache webserver)</p>