mirror of
https://github.com/robonen/education-project.git
synced 2026-03-20 02:44:31 +00:00
модуль Задания(почти готов)
This commit is contained in:
@@ -26,4 +26,8 @@ class SchoolClass extends Model
|
||||
->withPivot('hours_per_week', 'hours_per_year');
|
||||
}
|
||||
|
||||
public function tasks() {
|
||||
return $this->hasMany(Task::class, 'class_id');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user