belongsTo(Product::class)->where('status', 1); } public function coupon() { return $this->hasMany(Coupon::class)->orWhereIn('agent_product_id', [0]); } }