/** * Update taxonomy term * @param integer $id * @return Redirect */ public function update($id) { if ($this->termRepository->update($id, Input::all())) { return Redirect::back()->withAlertSuccess('Saved.'); } return Redirect::back()->withInput()->withErrors($this->termRepository->errors()); }
/** * Update an entry via a PUT request * @param integer $id * @return Redirect */ public function update($id) { if ($this->repository->update($id, Input::all())) { return Redirect::back()->with('active_field_group', Input::get('active_field_group'))->withAlertSuccess('Saved.'); } return Redirect::back()->with('active_field_group', Input::get('active_field_group'))->withInput()->withErrors($this->repository->errors()); }