belongsTo(Network::class, 'network_id'); } public function user() { return $this->belongsTo(User::class, 'user_id'); } public function performances() { return $this->hasManyThrough(NhPerformance::class, NhHealthCareSheetsPerformance::class, 'sheet_id', 'id', 'id', 'performance_id'); } public function exams() { return $this->hasManyThrough(NhExam::class, NhHealthCareSheetsExam::class, 'sheet_id', 'id', 'id', 'exam_id'); } public function prescriptions() { return $this->hasManyThrough(NhMedicalPrescription::class, NhHealthCareSheetsPrescription::class, 'sheet_id', 'id', 'id', 'prescription_id'); } }