/**
  * Delete a tag.
  * @param                                   $id
  * @param \App\Http\Requests\GenericRequest $request
  * @return mixed
  */
 public function destroy($id, GenericRequest $request)
 {
     // Require ajax
     $this->requireAjax($request);
     // Get the tag
     $tag = ResourceTag::find($id);
     if (!$tag) {
         return $this->ajaxError("Couldn't find that tag", 404);
     }
     // Delete
     $tag->delete();
     Flash::success('Tag deleted');
     return Response::json(true);
 }