src/DdvUtil/Laravel/Model.php
public function aliasRelation($keyOld, $keyNew){
        if (!empty($this->relations[$keyOld])){
            $this->relations[$keyNew] = &$this->relations[$keyOld];
        }
        return $this;
    }
public function aliasRelation($keyOld, $keyNew){
        if (!empty($this->relations[$keyOld])){
            $this->relations[$keyNew] = &$this->relations[$keyOld];
        }
        return $this;
    }
资源复制别名
@param $keyOld
@param $keyNew
@return static|Model|$this [请求对象]