public static function update($data = [], $where = []) { $model = new static(); $result = $model->isUpdate(true)->save($data, $where); return $model; }