Menu

## Attendance extends Model
in package
uses SoftDeletes

Attendance.php : 38

### Table of Contents

#### Properties

$casts : array<string|int, mixed>
  The attributes that should be mutated to dates.
$fillable : array<string|int, mixed>
  The attributes that are mass assignable.
$table : string
  The table associated with the model.

#### Methods

absentReason() : BelongsTo
  Get the absence reason for this attendance record.
academicYear() : BelongsTo
  Get the academic year for this attendance record.
admin() : BelongsTo
  Get the admin who recorded this attendance.
recordedby() : BelongsTo
  Get the user who recorded this attendance.
school() : BelongsTo
  Get the school for this attendance record.
scopeByRole() : Builder
  Scope to filter attendance by user role/usergroup.
standardLink() : BelongsTo
  Get the standard link for this attendance record.
user() : BelongsTo
  Get the user for this attendance record.

### Properties

#### $casts

Attendance.php : 66

The attributes that should be mutated to dates.

`protected array<string|int, mixed> $casts = ['date' => 'datetime', 'deleted_at' => 'datetime']`

#### $fillable

Attendance.php : 55

The attributes that are mass assignable.

`protected array<string|int, mixed> $fillable = ['school_id', 'academic_year_id', 'standardLink_id', 'user_id', 'date', 'session', 'status', 'reason_id', 'remarks', 'recorded_by']`

#### $table

Attendance.php : 48

The table associated with the model.

`protected string $table = 'attendances'`

### Methods

#### absentReason()

Attendance.php : 116

Get the absence reason for this attendance record.

`public absentReason() : BelongsTo`

##### Return values

BelongsTo

#### academicYear()

Attendance.php : 86

Get the academic year for this attendance record.

`public academicYear() : BelongsTo`

##### Return values

BelongsTo

#### admin()

Attendance.php : 126

Get the admin who recorded this attendance.

`public admin() : BelongsTo`

##### Return values

BelongsTo

#### recordedby()

Attendance.php : 136

Get the user who recorded this attendance.

`public recordedby() : BelongsTo`

##### Return values

BelongsTo

#### school()

Attendance.php : 76

Get the school for this attendance record.

`public school() : BelongsTo`

##### Return values

BelongsTo

#### scopeByRole()

Attendance.php : 148

Scope to filter attendance by user role/usergroup.

`public scopeByRole(Builder $query, int $usergroup_id) : Builder`

##### Parameters

$query : Builder
$usergroup_id : int

##### Return values

Builder

#### standardLink()

Attendance.php : 96

Get the standard link for this attendance record.

`public standardLink() : BelongsTo`

##### Return values

BelongsTo

#### user()

Attendance.php : 106

Get the user for this attendance record.

`public user() : BelongsTo`

##### Return values

BelongsTo

## Search results