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

исправил конфликты после обновления ветки

This commit is contained in:
ashen-1-dev
2020-12-16 20:57:35 +07:00
24 changed files with 427 additions and 168 deletions

View File

@@ -26,8 +26,17 @@ class SchoolClass extends Model
->withPivot('hours_per_week', 'hours_per_year');
}
public function tasks() {
return $this->hasMany(Task::class, 'class_id');
}
public function chatLinks()
{
return $this->hasMany(ChatLink::class, 'class_id');
}
}