1
0
mirror of https://github.com/robonen/education-project.git synced 2026-06-20 01:55:17 +00:00

Merge branch 'timetable' of github.com:Robonen/education-project into timetable

This commit is contained in:
nikden13
2020-12-17 01:11:39 +07:00
9 changed files with 104 additions and 135 deletions
+8 -4
View File
@@ -26,14 +26,18 @@ class SchoolClass extends Model
->withPivot('hours_per_week', 'hours_per_year');
}
public function chatLinks()
{
return $this->hasMany(ChatLink::class, 'class_id');
}
public function tasks() {
return $this->hasMany(Task::class, 'class_id');
}
public function chatLinks()
{
return $this->hasMany(ChatLink::class, 'class_id');
}
}
+2
View File
@@ -34,7 +34,9 @@ class Teacher extends Model
return $this->belongsTo(User::class);
}
public function tasks(){
return $this->hasMany(Task::class);
}
}