Enable model guarding after doing seeds
Leaving models unguarded can cause all kinds of havoc if someone uses seeds in their tests. Best to default to reguard after doing the seeds.
This commit is contained in:
@@ -15,5 +15,7 @@ class DatabaseSeeder extends Seeder
|
|||||||
Model::unguard();
|
Model::unguard();
|
||||||
|
|
||||||
// $this->call('UserTableSeeder');
|
// $this->call('UserTableSeeder');
|
||||||
|
|
||||||
|
Model::reguard();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user