/** * updates an existing record. * * @param $id * @param array $attributes * @return mixed */ public function update($id, array $attributes) { $updated = $this->repository->update($id, $attributes); $this->forget(); return $updated; }