Skip to content

Commit

Permalink
Meeh 2
Browse files Browse the repository at this point in the history
  • Loading branch information
fulopattila122 committed Sep 7, 2023
1 parent 713955b commit b12f42c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Foundation/Models/Channel.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Channel extends BaseChannel
{
public function products(): MorphToMany
{
return $this->morphToMany(ProductProxy::modelClass(), 'channelables');
return $this->morphedByMany(ProductProxy::modelClass(), 'channelables');
}

public function masterProducts(): MorphToMany
Expand Down

0 comments on commit b12f42c

Please sign in to comment.