Menu

## Promotion extends Model
in package
uses SoftDeletes

Promotion.php : 41

Class Promotion

Model for managing student promotions between standards.

##### Tags

mixin

### Table of Contents

#### Properties

$comments : string|null
$created_at : DateTime
$current_academic_year_id : int
$current_section_id : int
$current_standard_id : int
$currentAcademicYear : AcademicYear
$currentSection : Section
$currentStandard : Standard
$deleted_at : DateTime
$exam_id : int|null
$id : int
$next_academic_year_id : int
$next_section_id : int
$next_standard_id : int
$nextAcademicYear : AcademicYear
$nextSection : Section
$nextStandard : Standard
$school : School
$school_id : int
$status : int
$updated_at : DateTime
$user : User
$user_id : int
$dates : 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

currentAcademicYear() : BelongsTo
  Get the current academic year.
currentSection() : BelongsTo
  Get the current section.
currentStandard() : BelongsTo
  Get the current standard (grade).
nextAcademicYear() : BelongsTo
  Get the next academic year.
nextSection() : BelongsTo
  Get the next section.
nextStandard() : BelongsTo
  Get the next standard (grade).
school() : BelongsTo
  Get the school for this promotion.
user() : BelongsTo
  Get the student being promoted.

### Properties

#### $comments

Promotion.php : 0
`public string|null $comments`

#### $created_at

Promotion.php : 0
`public DateTime $created_at`

#### $current_academic_year_id

Promotion.php : 0
`public int $current_academic_year_id`

#### $current_section_id

Promotion.php : 0
`public int $current_section_id`

#### $current_standard_id

Promotion.php : 0
`public int $current_standard_id`

#### $currentAcademicYear read-only

Promotion.php : 0
`public AcademicYear $currentAcademicYear`

#### $currentSection read-only

Promotion.php : 0
`public Section $currentSection`

#### $currentStandard read-only

Promotion.php : 0
`public Standard $currentStandard`

#### $deleted_at

Promotion.php : 0
`public DateTime $deleted_at`

#### $exam_id

Promotion.php : 0
`public int|null $exam_id`

#### $id

Promotion.php : 0
`public int $id`

#### $next_academic_year_id

Promotion.php : 0
`public int $next_academic_year_id`

#### $next_section_id

Promotion.php : 0
`public int $next_section_id`

#### $next_standard_id

Promotion.php : 0
`public int $next_standard_id`

#### $nextAcademicYear read-only

Promotion.php : 0
`public AcademicYear $nextAcademicYear`

#### $nextSection read-only

Promotion.php : 0
`public Section $nextSection`

#### $nextStandard read-only

Promotion.php : 0
`public Standard $nextStandard`

#### $school read-only

Promotion.php : 0
`public School $school`

#### $school_id

Promotion.php : 0
`public int $school_id`

#### $status

Promotion.php : 0
`public int $status`

#### $updated_at

Promotion.php : 0
`public DateTime $updated_at`

#### $user read-only

Promotion.php : 0
`public User $user`

#### $user_id

Promotion.php : 0
`public int $user_id`

#### $dates

Promotion.php : 67

The attributes that should be mutated to dates.

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

#### $fillable

Promotion.php : 58

The attributes that are mass assignable.

`protected array<string|int, mixed> $fillable = ['school_id', 'user_id', 'current_academic_year_id', 'current_standard_id', 'current_section_id', 'exam_id', 'next_academic_year_id', 'next_standard_id', 'next_section_id', 'comments', 'status']`

#### $table

Promotion.php : 51

The table associated with the model.

`protected string $table = 'promotions'`

### Methods

#### currentAcademicYear()

Promotion.php : 99

Get the current academic year.

`public currentAcademicYear() : BelongsTo`

##### Return values

BelongsTo

#### currentSection()

Promotion.php : 139

Get the current section.

`public currentSection() : BelongsTo`

##### Return values

BelongsTo

#### currentStandard()

Promotion.php : 119

Get the current standard (grade).

`public currentStandard() : BelongsTo`

##### Return values

BelongsTo

#### nextAcademicYear()

Promotion.php : 109

Get the next academic year.

`public nextAcademicYear() : BelongsTo`

##### Return values

BelongsTo

#### nextSection()

Promotion.php : 149

Get the next section.

`public nextSection() : BelongsTo`

##### Return values

BelongsTo

#### nextStandard()

Promotion.php : 129

Get the next standard (grade).

`public nextStandard() : BelongsTo`

##### Return values

BelongsTo

#### school()

Promotion.php : 79

Get the school for this promotion.

`public school() : BelongsTo`

##### Return values

BelongsTo

#### user()

Promotion.php : 89

Get the student being promoted.

`public user() : BelongsTo`

##### Return values

BelongsTo

## Search results