public function update($id) { $word = Mword::find($id); if (!$word) { return $this->respondNotFound(); } if ($word->update(Input::all())) { return $this->respond($this->transform_word($word)); } return $this->respondServerError(); }