Menu

## StudentHistory extends Model
in package
uses SoftDeletes

StudentHistory.php : 31

Class StudentHistory

Model for tracking student activity and history.

##### Tags

mixin

### Table of Contents

#### Properties

$created_at : DateTime
$deleted_at : DateTime
$entity_id : int
$entity_type : string
$id : int
$parent : User|null
$parent_id : int|null
$read_at : DateTime|null
$school_id : int
$student_id : int
$type : string
$updated_at : DateTime
$user : User
$fillable : mixed
$table : mixed

#### Methods

entity() : MorphTo
  Get the polymorphic entity associated with this history record.
parent() : BelongsTo
  Get the parent user associated with this history.
user() : BelongsTo
  Get the student user associated with this history.

### Properties

#### $created_at

StudentHistory.php : 0
`public DateTime $created_at`

#### $deleted_at

StudentHistory.php : 0
`public DateTime $deleted_at`

#### $entity_id

StudentHistory.php : 0
`public int $entity_id`

#### $entity_type

StudentHistory.php : 0
`public string $entity_type`

#### $id

StudentHistory.php : 0
`public int $id`

#### $parent read-only

StudentHistory.php : 0
`public User|null $parent`

#### $parent_id

StudentHistory.php : 0
`public int|null $parent_id`

#### $read_at

StudentHistory.php : 0
`public DateTime|null $read_at`

#### $school_id

StudentHistory.php : 0
`public int $school_id`

#### $student_id

StudentHistory.php : 0
`public int $student_id`

#### $type

StudentHistory.php : 0
`public string $type`

#### $updated_at

StudentHistory.php : 0
`public DateTime $updated_at`

#### $user read-only

StudentHistory.php : 0
`public User $user`

#### $fillable

StudentHistory.php : 36
`protected mixed $fillable = ['school_id', 'student_id', 'parent_id', 'read_at', 'entity_id', 'entity_type', 'type']`

#### $table

StudentHistory.php : 35
`protected mixed $table = 'student_history'`

### Methods

#### entity()

StudentHistory.php : 43

Get the polymorphic entity associated with this history record.

`public entity() : MorphTo`

##### Return values

MorphTo

#### parent()

StudentHistory.php : 53

Get the parent user associated with this history.

`public parent() : BelongsTo`

##### Return values

BelongsTo

#### user()

StudentHistory.php : 63

Get the student user associated with this history.

`public user() : BelongsTo`

##### Return values

BelongsTo

## Search results