Doctor::has('DoctorMessage')->with('DoctorMessage')->get()

Read more of this post