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

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

This commit is contained in:
ashen-1-dev
2020-12-11 00:23:29 +07:00
parent dda49ceb17
commit 854ffc83c8
7 changed files with 39 additions and 6 deletions

View File

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