Domain\Student\StudentRepository::getWithClassroomsAndMatters PHP Method

getWithClassroomsAndMatters() public method

Get student with classrooms and matters by student id.
public getWithClassroomsAndMatters ( integer $student_id ) : Illuminate\Database\Eloquent\Collection
$student_id integer
return Illuminate\Database\Eloquent\Collection
    public function getWithClassroomsAndMatters($student_id)
    {
        $model = $this->model;
        $student = $model->with(['classrooms.matters', 'matterCompleteds'])->find($student_id);
        return $student;
    }