public static function updateOnePermission($id, $name) { $model = PermissionModel::findOne($id); $model->name = $name; return $model->save(); }