如何撤消种子设定操作?拉维5

mbyulnm0  于 2021-06-25  发布在  Mysql
关注(0)|答案(0)|浏览(245)

我开过这个播种机:

private function seedUsers()
{
    $users = [
        [
            'name'       => '**',
            'email'      => 'admin@**.com',
            'gender'     => '**',
            'privacy'    => '**',
            'password'    => '**',
            'country_id' => *,
            'city_id'    => *,
            'role_id'    => *,
        ],
    ];
    foreach ($users as $user) {
        factory(App\Services\Users\User::class)->create($user);
    }
    factory(App\Services\Users\User::class, 10)->create();// This line was included by mistake.
}

在我删除了添加10个测试用户的行之后,有没有办法撤消这个播种机并重新运行它?
我用的是laravel5.5
请记住,我有这些用户的电子邮件地址,这不是一个测试数据库,所以我只需要删除这10个测试用户。

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题