1
0
mirror of https://github.com/robonen/education-project.git synced 2026-03-20 02:44:31 +00:00

Модуль Задания(fix some bugs)

This commit is contained in:
ashen-1-dev
2020-12-11 01:47:33 +07:00
parent 854ffc83c8
commit 9c3874a2a0
4 changed files with 15 additions and 22 deletions

View File

@@ -19,15 +19,15 @@ class Task extends Model
}
public function class() {
$this->belongsTo(SchoolClass::class);
return $this->belongsTo(SchoolClass::class);
}
public function tasks() {
$this->hasMany(Task::class);
return $this->hasMany(Task::class);
}
public function answers() {
$this->hasMany(AnswerToTask::class);
return $this->hasMany(AnswerToTask::class);
}
}