mirror of
https://github.com/robonen/education-project.git
synced 2026-03-20 02:44:31 +00:00
исправление ошибок
This commit is contained in:
@@ -17,4 +17,10 @@ class Subject extends Model
|
||||
{
|
||||
return $this->hasMany(BankTask::class);
|
||||
}
|
||||
|
||||
public function schoolClasses()
|
||||
{
|
||||
return $this->belongsToMany(SchoolClass::class, 'academic_plans')->withPivot('hours_per_week', 'hours_per_year');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user