belongsTo(Student::class, 'id_student'); } public function reporter() { return $this->belongsTo(User::class, 'reported_by'); } public function attendanceHistory() { return $this->belongsTo(AttendanceHistory::class, 'id_attendance_history'); } public function class() { return $this->belongsTo(Classes::class, 'id_class'); } }