mirror of
https://github.com/robonen/education-project.git
synced 2026-03-20 10:54:31 +00:00
Merge branch 'news' into journal
# Conflicts: # app/Http/Controllers/Users/TeacherController.php
This commit is contained in:
@@ -28,4 +28,9 @@ class Student extends Model
|
||||
return $this->hasMany(Journal::class, 'student_id');
|
||||
}
|
||||
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo(User::class);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user