belongsTo('App\Models\CompanyInfoModel'); } /*** * 获得线索所有者信息 * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ public function ower(){ return $this->belongsTo('App\Models\AdminUserModel','ower_id'); } public function contact(){ return $this->belongsTo('App\Models\CompanyContactsModel','contact_id'); } /* * 获得线索的进度 * */ public function progress(){ return $this->hasMany('App\Models\ThreadsProgressModel','threads_id'); } }