protected function addRelation($name, $builder, $label = '')
    {
        $relation = new Relation($name, $builder, $label);

        $relation->setParent($this);

        $this->overwriteExistingRelation($name);

        return tap($relation, function ($relation) {
            $this->relations->push($relation);
        });
    }
protected function addRelation($name, $builder, $label = '')
    {
        $relation = new Relation($name, $builder, $label);

        $relation->setParent($this);

        $this->overwriteExistingRelation($name);

        return tap($relation, function ($relation) {
            $this->relations->push($relation);
        });
    }
protected function addRelation ( $ name , $ builder , $ label = '' ) { $ relation = new Relation ( $ name , $ builder , $ label ) ; $ relation -> setParent ( $ this ) ; $ this -> overwriteExistingRelation ( $ name ) ; return tap ( $ relation , function ( $ relation ) { $ this -> relations -> push ( $ relation ) ; } ) ; }
Add a relation panel to show.

@param string   $name
@param \Closure $builder
@param string   $label

@return Relation
Add a relation panel to show .