示例#1
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     DB::statement('SET FOREIGN_KEY_CHECKS = 0');
     // disable foreign key constraints
     User::truncate();
     Profile::truncate();
     Brand::truncate();
     Model::unguard();
     $this->call('UsersTableSeeder');
     $this->call('ProfilesTableSeeder');
     $this->call('BrandsTableSeeder');
     $this->call('BrandUserTableSeeder');
     $this->call('QuotesTableSeeder');
     $this->call('FeedsTableSeeder');
     Model::reguard();
     DB::statement('SET FOREIGN_KEY_CHECKS = 1');
     // enable foreign key constraints
 }