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

View File

@@ -15,5 +15,7 @@ class DatabaseSeeder extends Seeder
Model::unguard(); Model::unguard();
// $this->call('UserTableSeeder'); // $this->call('UserTableSeeder');
Model::reguard();
} }
} }