hasOne(MerchantCategory::class, 'merchant_category_id', 'merchant_category_id')->bind(['category_name']); } public function merchantType() { return $this->hasOne(MerchantType::class, 'mer_type_id', 'mer_type_id')->bind(['type_name']); } // 申请人 public function applicant(){ return $this->hasOne(User::class,'uid','uid'); } // 默认管理员 public function manage(){ return $this->hasOne(User::class,'uid','manage_uid'); } }