I have this raw query. How can i convert this one into Laravel eloquent.
SELECT * FROM `results` AS q
INNER JOIN `answers`AS a ON q.question_id = a.question_id
AND q.team1 = a.team1
AND q.team2 = a.team2
AND q.score1 = a.score1
// Table relationships.
results hasMany answers.
results hasMany predictions.
Prediction is another model here.
resultsandanswers?