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:
Peter Haza 2015-05-31 20:33:11 +02:00
parent 6575cb74f8
commit 03a27fa0b2
1 changed files with 2 additions and 0 deletions

View File

@ -15,5 +15,7 @@ public function run()
Model::unguard();
// $this->call('UserTableSeeder');
Model::reguard();
}
}