belongsTo(Student::class, 'student_id'); } public function task() { return $this->belongsTo(StudentTask::class, 'task_id'); } }