Trying to achieve the same as stated in #41.
Unfortunately the former BelongsToMany now is a MorpToMany relation.
And as we try to get the roles from a subclass will try to find the wrong morphType.
Any advice how to get this to work?
So with some more googling I found:
public function getMorphClass()
{
return User::class;
}
with which it works perfectly....
Most helpful comment
So with some more googling I found:
with which it works perfectly....