Esempio n. 1
0
 /**
  * @param TagDestroyRequest $request
  * @param int $id
  * @return \Illuminate\Http\RedirectResponse
  */
 public function destroy(TagDestroyRequest $request, $id)
 {
     $tag = Tag::findOrFail($id);
     $tag->delete();
     return redirect()->route('admin::tags.index');
 }
Esempio n. 2
0
 /**
  * Remove the specified tag from storage.
  *
  * @param  int $id
  * @return \Dingo\Api\Http\Response
  */
 public function destroy($id)
 {
     $tag = $this->tag->findOrFail($id);
     $tag->delete();
     return $this->response->item($tag, new TagTransformer());
 }
Esempio n. 3
0
 /**
  * @param int $id
  */
 public function destroy($id)
 {
     $field = Tag::findOrFail($id);
     $field->delete();
 }