1
0
mirror of https://github.com/robonen/education-project.git synced 2026-03-20 02:44:31 +00:00
This commit is contained in:
nikden13
2020-12-16 15:25:42 +07:00
parent 045a767774
commit e19ab81ddd
7 changed files with 69 additions and 5 deletions

View File

@@ -15,6 +15,10 @@ class Student extends Model
'updated_at',
];
protected $hidden = [
'user_id',
];
public function schoolClass()
{
return $this->belongsTo(SchoolClass::class, 'class_id');