public function updateById(array $fields, $model_id) { $model = $this->getById($model_id); $model->update($fields); return $model; }