From laravel 8 Seeders and factories are now namespaced
To accommodate for these changes, add DatabaseSeeders
namespace to your seeder classes.
namespace DatabaseSeeders;
In addition, move all seeder files from previous database/seeds
directory to database/seeders
folder.
In your case remove all lines started with use DatabaseSeeders...
from DatabaseSeeder.php
file
It should solve the issue,
You can also run dump-autoload & fresh migration with seed,
composer dump-autoload
php artisan migrate:fresh --seed
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…