Feb 14, 2020
0
Level 1
Laravel Nova BelongsToMany
- There is a table Game. First_theam_id and second_theam_id fields are stored in it. When you select atta, the starting lineup (separately) for the first team and second team, all players are displayed. How to make players appear for the first team and the second only.
- In the resources of the game, in the fields how to display, so that the related field displays both the name and surname of the player. BelongsToMany :: make ('First Theam', 'first_team_players', Player :: class) -> display ('name'). How to display first and last names
Please or to participate in this conversation.