title: Laravel 7 - artisan seed Target class [DatabaseSeeder] does not exist
body: <p>I'm trying to seed my &quot;DatabaseSeeder.php' But when I try to run
  <code>php artisan db:seed</code>
  I get the error:</p>
  <blockquote>
  <p>Target class [DatabaseSeeder] does not exist.</p>
  </blockquote>
  <p>My code in &quot;DatabaseSeeder.php&quot; looks like this:</p>
  <pre><code>&lt;?php
  
  use Illuminate\Database\Seeder;
  use Illuminate\Support\Facades\DB;
  
  class DatabaseSeeder extends Seeder
  {
      /**
       * Seed the application's database.
       *
       * @return void
       */
      public function run()
      {
          factory(App\User::class, 3)-&gt;create()-&gt;each(function($u) {
              $u-&gt;questions()
                -&gt;saveMany(
                    factory(App\Question::class, rand(1, 5))-&gt;make()
                );
          });        
      }
  }
  </code></pre>
  <p>What I tried so far:</p>
  <pre><code>composer dump-autoload
  </code></pre>
  <pre><code>php artisan cache:clear
  </code></pre>
  <pre><code>php artisan optimize
  </code></pre>
  <p><strong>Note: I don't have a User-Made seeder, I'm trying to use the default one (DatabaseSeeder.php), but for some reason, it's telling me that it doesn't exist.</strong></p>