I have 3 tables: Draw, player and round, and in turn a common table for all three having as attributes: id, id_draw, id_player, id_round.
What I don't know is how to build this type of relationships and how to insert data. Since in a many-to-many relationship with two tables it would be: draw->player()->attach(...);
With this type of relationship of 3 tables, I don't know how to insert data and build the belongsToMany relationship.
Relations:
The ternary relationship is given by draw - PlayerATP - Round being the resulting table Matches
Considering that Eloquent does not support composite primary keys , I recommend that you approach your database structure in a different way to save yourself some headaches.
Assuming (I don't know if this will be the case, but it can be adapted) that a round has several rolls (draws) and one roll belongs to a player, you can set up some relationships:
player 1 - N draw (player hasMany draws, draw belongsTo player)
round 1 - N draw (round hasMany draws, draw belongsTo round)
Provide more information about the relationships you want to make so I can show you a more complex example.
UPDATE
draw M - N player (draw player belongsToMany , draw player belongsToMany )
draw M - round N (draw belongsToMany round, draw belongsToMany round )
player M - round N (player belongsToMany round, round player belongsToMany )
There you have three pivot table relationships between them, but more information is needed, since you're using a ternary but haven't provided enough detail to know what you're trying to do.