need help to join more than one table in laravel query
Matches table
id
round
league_id
home_team_id
away_team_id
match_date
Match facts table
id
match_id
player_id
minutes
goals
this query gets home and away team players together:
$MatchFacts = Match_fact::where('match_id', $match->id)
->get();
the goal is to get all match facts by team players.