Skip to content

Commit

Permalink
Proxy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fulopattila122 committed Sep 7, 2023
1 parent 15f8763 commit 93da3bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Channel/Traits/Channelable.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
namespace Vanilo\Channel\Traits;

use Illuminate\Database\Eloquent\Relations\MorphToMany;
use Vanilo\Channel\Models\Channel;
use Vanilo\Channel\Models\ChannelProxy;

trait Channelable
{
public function channels(): MorphToMany
{
return $this->morphToMany(Channel::class, 'channelable');
return $this->morphToMany(ChannelProxy::modelClass(), 'channelable');
}
}

0 comments on commit 93da3bc

Please sign in to comment.