MorphToMany
morphToMany(string $related, string $name, string $table = null, string $foreignKey = null, string $otherKey = null, bool $inverse = false)
Define a polymorphic many-to-many relationship. Parameters string $related string $name string $table string $foreignKey string $otherKey bool $inverse Return Value MorphToMany