src/Tag.php
public function setTag($tag)
    {
        if (in_array($tag, $this->getParent()->allowed_tags)) {
            throw new \Exception($tag.' can not be changed as it is not allowed under '.$this->getParent()->getTag().'.');
        }

        $this->tag = $tag;

        return $this;
    }
public function setTag($tag)
    {
        if (in_array($tag, $this->getParent()->allowed_tags)) {
            throw new \Exception($tag.' can not be changed as it is not allowed under '.$this->getParent()->getTag().'.');
        }

        $this->tag = $tag;

        return $this;
    }
public function setTag ( $ tag ) { if ( in_array ( $ tag , $ this -> getParent ( ) -> allowed_tags ) ) { throw new \ Exception ( $ tag . ' can not be changed as it is not allowed under ' . $ this -> getParent ( ) -> getTag ( ) . '.' ) ; } $ this -> tag = $ tag ; return $ this ; }
Set the tag name.

@return Bluora\LaravelHtmlBuilder\Tag
Set the tag name .