If you have both database/seeders and database/seeds directories php artisan make:seeder UserSeeder will place UserSeeder.php file to seeds but with incorrect namespace Database\Seeders;.
As result you can't use it in default database/DatabaseSeeder as docs say.
https://github.com/laravel/framework/blob/b7ceae1761de6839e37b70a65177e702b1b4a38f/src/Illuminate/Database/Console/Seeds/SeederMakeCommand.php#L69-L76
If you have both
database/seeders
anddatabase/seeds
directoriesphp artisan make:seeder UserSeeder
will placeUserSeeder.php
file toseeds
but with incorrectnamespace Database\Seeders;
.As result you can't use it in default
database/DatabaseSeeder
as docs say.Upgrade guide 7 to 8 contains section about upgrading old seeders:
so may be this condition is unnecessary now?
Some packeges can make
seeds
dir by its own e.g.tcg/voyager
do that and than application start to behave incorrectly