php artisan migrate:fresh --seed
rabol opened this issue · comments
Seeding the db throws an error:
Illuminate\Contracts\Container\BindingResolutionException
Target class [DatabaseSeeder] does not exist.
at vendor/laravel/framework/src/Illuminate/Container/Container.php:811
807▕
808▕ try {
809▕ $reflector = new ReflectionClass($concrete);
810▕ } catch (ReflectionException $e) {
➜ 811▕ throw new BindingResolutionException("Target class [$concrete] does not exist.", 0, $e);
812▕ }
813▕
814▕ // If the type is not instantiable, the developer is attempting to resolve
815▕ // an abstract type such as an Interface or Abstract Class and there is
+35 vendor frames
36 artisan:37
Illuminate\Foundation\Console\Kernel::handle()
normally classes are in the database/seeders folder, but in this repository they are in database/seeds
Rename the seeds folder to seeders solve the problem