Ejemplo n.º 1
0
 protected function seeds_admins()
 {
     $root = RoleModel::getRoot();
     AdminUserModel::createWithRole(['id' => 1, 'password' => Hash::make('qweasdzxc'), 'email' => '*****@*****.**', 'username' => '网站后台', 'mobile' => '18000000000', 'employee_id' => '0000'], $root);
     AdminUserModel::createWithRole(['id' => 2, 'password' => Hash::make('qweasdzxc'), 'email' => '*****@*****.**', 'username' => 'kwang', 'mobile' => '18019101985', 'employee_id' => '0001'], $root);
     return null;
 }