hasOne(EbStoreProduct::class, 'product_id', 'product_id'); } /** * * 所属用户 * */ public function user() { return $this->hasOne(Merchant::class, 'mer_id', 'mer_id'); } }