private function deleteTag($id)
    {
        $tags = Tag::find($id);
        if(Tag::hasPosts($id)) {
            return $this->response("You can't delete this Tag. There are posts associated with it.", 403);
        }
        if ($tags->delete()) {
            return true;
        }
        return false;
    }
private function deleteTag($id)
    {
        $tags = Tag::find($id);
        if(Tag::hasPosts($id)) {
            return $this->response("You can't delete this Tag. There are posts associated with it.", 403);
        }
        if ($tags->delete()) {
            return true;
        }
        return false;
    }
private function deleteTag ( $ id ) { $ tags = Tag :: find ( $ id ) ; if ( Tag :: hasPosts ( $ id ) ) { return $ this -> response ( "You can't delete this Tag. There are posts associated with it." , 403 ) ; } if ( $ tags -> delete ( ) ) { return true ; } return false ; }
Deletes tag by id.

@param  int $id
@return array|bool
Deletes tag by id .