コード例 #1
0
ファイル: TermController.php プロジェクト: creolab/krustr
 /**
  * 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
ファイル: EntryController.php プロジェクト: creolab/krustr
 /**
  * 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());
 }