Menu

## AcademicYear extends Model
in package
uses SoftDeletes

AcademicYear.php : 41

### 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

assignment() : HasMany
  Get the assignments for this academic year.
attendance() : HasMany
  Get the attendance records for this academic year.
bulletin() : HasMany
  Get the bulletins for this academic year.
currentPromotion() : BelongsTo
  Get the current promotion for this academic year.
discipline() : HasMany
  Get the disciplines for this academic year.
fee() : HasMany
  Get the fees for this academic year.
getStatusDisplayAttribute() : string
  Get the status display text based on the status value.
leaveType() : HasMany
  Get the leave types for this academic year.
marks() : HasMany
  Get the marks for this academic year.
nextPromotion() : BelongsTo
  Get the next promotion for this academic year.
school() : BelongsTo
  Get the school that owns the academic year.
sendMail() : HasMany
  Get the sent mails for this academic year.
standard() : HasMany
  Get the standards for this academic year.
studentAcademic() : HasMany
  Get the student academics for this academic year.
subject() : HasMany
  Get the subjects for this academic year.
teacherLeaveApplication() : HasMany
  Get the teacher leave applications for this academic year.
teacherprofile() : HasMany
  Get the teacher profiles for this academic year.

### Properties

#### $casts

AcademicYear.php : 70

The attributes that should be mutated to dates.

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

#### $fillable

AcademicYear.php : 58

The attributes that are mass assignable.

`protected array<string|int, mixed> $fillable = ['school_id', 'name', 'description', 'start_date', 'end_date', 'status']`

#### $table

AcademicYear.php : 51

The table associated with the model.

`protected string $table = 'academic_years'`

### Methods

#### assignment()

AcademicYear.php : 203

Get the assignments for this academic year.

`public assignment() : HasMany`

##### Return values

HasMany

#### attendance()

AcademicYear.php : 193

Get the attendance records for this academic year.

`public attendance() : HasMany`

##### Return values

HasMany

#### bulletin()

AcademicYear.php : 183

Get the bulletins for this academic year.

`public bulletin() : HasMany`

##### Return values

HasMany

#### currentPromotion()

AcademicYear.php : 153

Get the current promotion for this academic year.

`public currentPromotion() : BelongsTo`

##### Return values

BelongsTo

#### discipline()

AcademicYear.php : 173

Get the disciplines for this academic year.

`public discipline() : HasMany`

##### Return values

HasMany

#### fee()

AcademicYear.php : 243

Get the fees for this academic year.

`public fee() : HasMany`

##### Return values

HasMany

#### getStatusDisplayAttribute()

AcademicYear.php : 80

Get the status display text based on the status value.

`public getStatusDisplayAttribute() : string`

##### Return values

string

#### leaveType()

AcademicYear.php : 223

Get the leave types for this academic year.

`public leaveType() : HasMany`

##### Return values

HasMany

#### marks()

AcademicYear.php : 133

Get the marks for this academic year.

`public marks() : HasMany`

##### Return values

HasMany

#### nextPromotion()

AcademicYear.php : 163

Get the next promotion for this academic year.

`public nextPromotion() : BelongsTo`

##### Return values

BelongsTo

#### school()

AcademicYear.php : 103

Get the school that owns the academic year.

`public school() : BelongsTo`

##### Return values

BelongsTo

#### sendMail()

AcademicYear.php : 253

Get the sent mails for this academic year.

`public sendMail() : HasMany`

##### Return values

HasMany

#### standard()

AcademicYear.php : 113

Get the standards for this academic year.

`public standard() : HasMany`

##### Return values

HasMany

#### studentAcademic()

AcademicYear.php : 123

Get the student academics for this academic year.

`public studentAcademic() : HasMany`

##### Return values

HasMany

#### subject()

AcademicYear.php : 213

Get the subjects for this academic year.

`public subject() : HasMany`

##### Return values

HasMany

#### teacherLeaveApplication()

AcademicYear.php : 233

Get the teacher leave applications for this academic year.

`public teacherLeaveApplication() : HasMany`

##### Return values

HasMany

#### teacherprofile()

AcademicYear.php : 143

Get the teacher profiles for this academic year.

`public teacherprofile() : HasMany`

##### Return values

HasMany

## Search results