Files
ponzi/database/seeds/DatabaseSeeder.php
Peter Haza 03a27fa0b2 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.
2015-05-31 20:33:11 +02:00

22 lines
337 B
PHP

<?php
use Illuminate\Database\Seeder;
use Illuminate\Database\Eloquent\Model;
class DatabaseSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
Model::unguard();
// $this->call('UserTableSeeder');
Model::reguard();
}
}