src/Tags/Taggable.php
public function attachTag($id)
    {
        if ( ! $this->tags->contains($id))
        {
            return $this->tags()->attach($id);
        }
    }
public function attachTag($id)
    {
        if ( ! $this->tags->contains($id))
        {
            return $this->tags()->attach($id);
        }
    }
public function attachTag ( $ id ) { if ( ! $ this -> tags -> contains ( $ id ) ) { return $ this -> tags ( ) -> attach ( $ id ) ; } }
Links a tag to the node

@param int $id
Links a tag to the node