Beispiel #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());
 }
Beispiel #2
0
 /**
  * Delete the entry
  * @param  integer $id
  * @return Redirect
  */
 public function destroy($id)
 {
     // Get requested entry
     $entry = $this->repository->find($id, $this->channel->name);
 }