Ejemplo n.º 1
0
 /**
  * Seed the project teams table.
  */
 protected function seedOwners()
 {
     $defaultOwners = [['name' => 'Baidu', 'path' => 'Baidu', 'user_id' => 1, 'description' => 'www.baidu.com', 'type' => 'Group'], ['name' => 'Alibaba', 'path' => 'Alibaba', 'user_id' => 1, 'description' => 'www.alibaba.com', 'type' => 'Group'], ['name' => 'Tencent', 'path' => 'Tencent', 'user_id' => 1, 'description' => 'www.qq.com', 'type' => 'Group'], ['name' => 'demo', 'path' => 'demo', 'user_id' => 1, 'description' => 'user', 'type' => 'User']];
     Owner::truncate();
     foreach ($defaultOwners as $owner) {
         Owner::create($owner);
     }
 }
Ejemplo n.º 2
0
 /**
  * Truncate all tables.
  */
 protected function seedInit()
 {
     Owner::truncate();
     User::truncate();
     Project::truncate();
     Member::truncate();
     Issue::truncate();
     Comment::truncate();
     Moment::truncate();
     Setting::truncate();
     Subscriber::truncate();
 }