belongsTo(Shop::class,'data_id','id',[],'LEFT')->setEagerlyType(0); } //关联教练 public function coach(){ $this->belongsTo(Coach::class,'data_id','id',[],'LEFT')->setEagerlyType(0); } }