feat: Face ID (scan, register, liveness) + role baru KS/Waka/Ketua Tim + notifikasi WA ortu + scoping wali kelas + error pages premium
This commit is contained in:
@@ -11,7 +11,7 @@ class Classes extends Model
|
||||
protected $fillable = [
|
||||
'source_id', 'name', 'level', 'department_code',
|
||||
'department_name', 'academic_year_name', 'is_active',
|
||||
'metadata',
|
||||
'metadata', 'homeroom_teacher_id',
|
||||
];
|
||||
|
||||
protected function casts(): array
|
||||
@@ -26,4 +26,9 @@ class Classes extends Model
|
||||
{
|
||||
return $this->hasMany(Student::class, 'class_id');
|
||||
}
|
||||
|
||||
public function homeroomTeacher()
|
||||
{
|
||||
return $this->belongsTo(User::class, 'homeroom_teacher_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user