public function getStudents($classroom_id) { $classroom = $this->repo->get($classroom_id); $students = $classroom->students; $students->load('user'); return ['classroom' => $classroom, 'students' => $students]; }