classes/Controllers/Base.php
private function parentRelation()
    {
        if ($this->parent && method_exists($this->parent, $this->parent_to_self)) {
            return $this->parent->{$this->parent_to_self}();
        }

        return false;
    }
private function parentRelation()
    {
        if ($this->parent && method_exists($this->parent, $this->parent_to_self)) {
            return $this->parent->{$this->parent_to_self}();
        }

        return false;
    }
private function parentRelation ( ) { if ( $ this -> parent && method_exists ( $ this -> parent , $ this -> parent_to_self ) ) { return $ this -> parent -> { $ this -> parent_to_self } ( ) ; } return false ; }
Run the parent relationship function for the active model, returning the Relation
object. Returns false if none found.

@return Illuminate\Database\Eloquent\Relations\Relation | false
Run the parent relationship function for the active model returning the Relation object . Returns false if none found .