title: Laravel 8. Seeder class does not exist
body: <p>This problem is not new, but I’ve looked and tried all the proposed solutions in other threads with no success.
  I’m working with Laravel 8 with Homestead, is a new installation on a Windows 10 machine, not an upgrade.
  I’m trying to seed a file called <em>HotelSeeder.php</em>. When I run the command</p>
  <pre><code>php artisan db:seed
  </code></pre>
  <p>I get the next error:</p>
  <p><a href="https://i.stack.imgur.com/V8wst.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/V8wst.png" alt="Error" /></a></p>
  <p>My HotelSeeder class goes like this:</p>
  <p><a href="https://i.stack.imgur.com/PZX4I.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PZX4I.png" alt="HotelSeeder.php" /></a></p>
  <p>My DatabaseSeeder class goes like this:</p>
  <p><a href="https://i.stack.imgur.com/lZrTv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lZrTv.png" alt="DatabaseSeeder.php" /></a></p>
  <p>Both classes are located in the directory <strong>database/seeders</strong></p>
  <p>Autoload in composer.json goes like this:</p>
  <p><a href="https://i.stack.imgur.com/JWIj1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JWIj1.png" alt="Autoload" /></a></p>
  <p>After I run <em>vagrant up</em> and <em>vagrant ssh</em>, the commands that I’m running are:</p>
  <p><code>php composer auto-load</code></p>
  <p><code>php artisan db:seed</code></p>
  <p>And the error shows up.</p>
  <p>I've tried also:</p>
  <p><code>php artisan db:seed --class=HotelSeeder</code></p>
  <p><code>php artisan migrate:fresh –seed</code></p>
  <p><code>php artisan clear:cache</code></p>
  <p><code>php artisan optimize</code></p>
  <p>Nothing seems to work. I hope you can help me.</p>