mirror of
https://github.com/robonen/education-project.git
synced 2026-03-20 02:44:31 +00:00
Merge branch 'task' into journal
# Conflicts: # app/Http/Controllers/Users/StudentController.php # app/Models/SchoolClass.php # app/Models/Teacher.php # composer.json # composer.lock # database/migrations/2020_12_03_104028_create_bank_task_files_table.php # routes/api.php
This commit is contained in:
@@ -29,4 +29,7 @@ class Teacher extends Model
|
||||
return $this->belongsTo(User::class);
|
||||
}
|
||||
|
||||
public function tasks(){
|
||||
return $this->hasMany(Task::class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user