Exemplo n.º 1
0
 /**
  * Display form for editing a term
  * @return View
  */
 public function edit($id)
 {
     // Find term and setup form
     $term = $this->termRepository->find($id);
     $form = new TermForm($term, array('route' => array('taxonomies.' . $this->taxonomy->name . '.update', $term->id)));
     return View::make('krustr::terms.edit', array('term' => $term, 'form' => $form));
 }
Exemplo n.º 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);
 }