示例#1
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     DB::statement('SET FOREIGN_KEY_CHECKS=0;');
     DomainController::truncate();
     Trust::truncate();
     Site::truncate();
     Role::truncate();
     Permission::truncate();
     Module::truncate();
     DB::statement('SET FOREIGN_KEY_CHECKS=1;');
     Model::unguard();
     $this->call('DomainControllersTableSeeder');
     $this->call('TrustsTableSeeder');
     $this->call('SitesTableSeeder');
     $this->call('RolesTableSeeder');
     $this->call('ModulesTableSeeder');
     $this->call('PermissionsTableSeeder');
 }