$correct_answ =Result::query()
->with('getQuestion', 'getAnswers', 'getQuestion.answers', 'getUser',
'getQuestion.answers.check_answer', function ($query){
return $query->where('user_id', '=', 90);
})
->whereHas('getQuestion.answers.check_answer', function ($query){
return $query->where('user_id', '=', 90);
})
->where('free_test_id', $request->id_test)
->where('user_id', $request->id_user)
->get();