Skip to content

Commit

Permalink
Always test your library code, kids!
Browse files Browse the repository at this point in the history
  • Loading branch information
fulopattila122 committed Sep 7, 2023
1 parent b12f42c commit e53d4b3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Foundation/Models/Channel.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,31 +27,31 @@ class Channel extends BaseChannel
{
public function products(): MorphToMany
{
return $this->morphedByMany(ProductProxy::modelClass(), 'channelables');
return $this->morphedByMany(ProductProxy::modelClass(), 'channelable');
}

public function masterProducts(): MorphToMany
{
return $this->morphedByMany(MasterProductProxy::modelClass(), 'channelables');
return $this->morphedByMany(MasterProductProxy::modelClass(), 'channelable');
}

public function shippingMethods(): MorphToMany
{
return $this->morphedByMany(ShippingMethodProxy::modelClass(), 'channelables');
return $this->morphedByMany(ShippingMethodProxy::modelClass(), 'channelable');
}

public function paymentMethods(): MorphToMany
{
return $this->morphedByMany(PaymentMethodProxy::modelClass(), 'channelables');
return $this->morphedByMany(PaymentMethodProxy::modelClass(), 'channelable');
}

public function taxonomies(): MorphToMany
{
return $this->morphedByMany(TaxonomyProxy::modelClass(), 'channelables');
return $this->morphedByMany(TaxonomyProxy::modelClass(), 'channelable');
}

public function properties(): MorphToMany
{
return $this->morphedByMany(PropertyProxy::modelClass(), 'channelables');
return $this->morphedByMany(PropertyProxy::modelClass(), 'channelable');
}
}

0 comments on commit e53d4b3

Please sign in to comment.