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:
parent
6575cb74f8
commit
03a27fa0b2
|
@ -15,5 +15,7 @@ public function run()
|
||||||
Model::unguard();
|
Model::unguard();
|
||||||
|
|
||||||
// $this->call('UserTableSeeder');
|
// $this->call('UserTableSeeder');
|
||||||
|
|
||||||
|
Model::reguard();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue