示例#1
0
 /**
  * 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());
 }
示例#2
0
 /**
  * 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());
 }