morphTo(); } public function biddingUser() { return $this->morphTo(); } public function product() { return $this->hasOne(Product::class, 'id', 'product_id'); } public function agentproduct() { return $this->hasOne(AgentProduct::class, 'id', 'agent_product_id'); } public function bidding() { return $this->hasOne(DemandBidding::class,'id','bidding_id'); } }