fix teacher page

This commit is contained in:
root
2026-06-04 19:26:24 -04:00
parent 6408906f07
commit 6fa656bb6c
9 changed files with 1370 additions and 4 deletions
+2
View File
@@ -14,6 +14,7 @@ class TeacherClass extends BaseModel
protected $fillable = [
'teacher_id',
'class_section_id',
'semester',
'school_year',
'position',
'updated_by',
@@ -404,6 +405,7 @@ class TeacherClass extends BaseModel
return [
'teacher_id' => [$req, 'integer', 'min:1', 'exists:users,id'],
'class_section_id' => [$req, 'integer', 'min:1'],
'semester' => [$req, 'string', 'max:25'],
'school_year' => [$req, 'string', 'max:9'],
'position' => [$req, 'string', 'in:' . implode(',', self::allowedPositions())],
'updated_by' => ['nullable', 'integer'],