/**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     DB::statement('SET FOREIGN_KEY_CHECKS = 0');
     Model::unguard();
     User::truncate();
     Album::truncate();
     $this->call('UserTableSeeder');
     $this->call('AlbumTableSeeder');
 }
예제 #2
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     DB::statement('SET FOREIGN_KEY_CHECKS = 0');
     Model::unguard();
     User::truncate();
     //delete the previous db data and then seed the db
     Album::truncate();
     $this->call('UserTableSeeder');
     $this->call('AlbumTableSeeder');
 }