Menu

## Teacherlink extends Model
in package
uses SoftDeletes, HasFactory

Teacherlink.php : 33

Class Teacherlink

Model for managing teacher-subject-class assignments.

##### Tags

mixin

### Table of Contents

#### Properties

$academic_year_id : int
$created_at : DateTime
$deleted_at : DateTime
$id : int
$lessonPlan : Collection|array<string|int, LessonPlan>
$school_id : int
$standardLink : StandardLink
$standardLink_id : int
$subject : Subject
$subject_id : int
$teacher : User
$teacher_id : int
$updated_at : DateTime
$userprofile : Userprofile
$fillable : array<string|int, mixed>
  The attributes that are mass assignable.
$table : string
  The table associated with the model.
$with : mixed

#### Methods

getTeacherTimeTableAttribute() : int
  Get the count of timetable entries for this teacher.
lessonPlan() : HasMany
  Get lesson plans for this teacher assignment.
standardLink() : BelongsTo
  Get the standard link for this teacher assignment.
subject() : BelongsTo
  Get the subject for this teacher assignment.
teacher() : BelongsTo
  Get the teacher for this assignment.
temp_timetable() : HasMany
  Get timetable entries for this teacher.
userprofile() : BelongsTo
  Get the user profile for this teacher.

### Properties

#### $academic_year_id

Teacherlink.php : 0
`public int $academic_year_id`

#### $created_at

Teacherlink.php : 0
`public DateTime $created_at`

#### $deleted_at

Teacherlink.php : 0
`public DateTime $deleted_at`

#### $id

Teacherlink.php : 0
`public int $id`

#### $lessonPlan read-only

Teacherlink.php : 0
`public Collection|array<string|int, LessonPlan> $lessonPlan`

#### $school_id

Teacherlink.php : 0
`public int $school_id`

#### $standardLink read-only

Teacherlink.php : 0
`public StandardLink $standardLink`

#### $standardLink_id

Teacherlink.php : 0
`public int $standardLink_id`

#### $subject read-only

Teacherlink.php : 0
`public Subject $subject`

#### $subject_id

Teacherlink.php : 0
`public int $subject_id`

#### $teacher read-only

Teacherlink.php : 0
`public User $teacher`

#### $teacher_id

Teacherlink.php : 0
`public int $teacher_id`

#### $updated_at

Teacherlink.php : 0
`public DateTime $updated_at`

#### $userprofile read-only

Teacherlink.php : 0
`public Userprofile $userprofile`

#### $fillable

Teacherlink.php : 51

The attributes that are mass assignable.

`protected array<string|int, mixed> $fillable = ['school_id', 'academic_year_id', 'standardLink_id', 'subject_id', 'teacher_id']`

#### $table

Teacherlink.php : 43

The table associated with the model.

`protected string $table = 'class_teacher_links'`

#### $with

Teacherlink.php : 55
`protected mixed $with = ['subject', 'teacher', 'standardLink']`

### Methods

#### getTeacherTimeTableAttribute()

Teacherlink.php : 102

Get the count of timetable entries for this teacher.

`public getTeacherTimeTableAttribute() : int`

##### Return values

int

#### lessonPlan()

Teacherlink.php : 123

Get lesson plans for this teacher assignment.

`public lessonPlan() : HasMany`

##### Return values

HasMany

#### standardLink()

Teacherlink.php : 62

Get the standard link for this teacher assignment.

`public standardLink() : BelongsTo`

##### Return values

BelongsTo

#### subject()

Teacherlink.php : 72

Get the subject for this teacher assignment.

`public subject() : BelongsTo`

##### Return values

BelongsTo

#### teacher()

Teacherlink.php : 92

Get the teacher for this assignment.

`public teacher() : BelongsTo`

##### Return values

BelongsTo

#### temp_timetable()

Teacherlink.php : 113

Get timetable entries for this teacher.

`public temp_timetable() : HasMany`

##### Return values

HasMany

#### userprofile()

Teacherlink.php : 82

Get the user profile for this teacher.

`public userprofile() : BelongsTo`

##### Return values

BelongsTo

## Search results