title: Getting class does not exist error when running database seeder
body: <p>I am creating a seeder in laravel 6.1 but I keep getting this error</p>
  <blockquote>
  <p>Illuminate\Contracts\Container\BindingResolutionException  : Target class [AdminsTableSeeder] does not exist.</p>
  </blockquote>
  <p>I tried running composer dump-autoload and composer dumpautoload, it doesn't work for me.</p>
  <p>here is my AdminsTableSeeder.php</p>
  <pre><code>use App\Models\Admin;
  use Faker\Factory as Faker;
  use Illuminate\Database\Seeder;
  
  class AdminsTableSeeder extends Seeder
  {
  /**
   * Run the database seeds.
   *
   * @return void
   */
  public function run()
  {
      $faker = Faker::create();
  
      Admin::create([
          'name'      =&gt;  $faker-&gt;name,
          'email'     =&gt;  'admin@admin.com',
          'password'  =&gt;  bcrypt('password'),
      ]);
  }
  }
  </code></pre>
  <p>and here is my DatabaseSeeder.php
  &lt;?php</p>
  <pre><code> use Illuminate\Database\Seeder;
  
   class DatabaseSeeder extends Seeder
   {
  /**
   * Seed the application's database.
   *
   * @return void
   */
  public function run()
  {
     $this-&gt;call(AdminsTableSeeder::class);
  }
  }
  </code></pre>