Menu

## Section extends Model
in package
uses SoftDeletes

Section.php : 30

Class Section

Model for managing school sections/divisions.

##### Tags

mixin

### Table of Contents

#### Properties

$created_at : DateTime
$currentPromotion : Promotion
$deleted_at : DateTime
$id : int
$name : string
$nextPromotion : Promotion
$school : School
$school_id : int
$standardLink : Collection|array<string|int, StandardLink>
$status : int
$subject : Collection|array<string|int, Subject>
$updated_at : DateTime
$value : string
$fillable : array<string|int, mixed>
  The attributes that are mass assignable.
$table : string
  The table associated with the model.

#### Methods

currentPromotion() : BelongsTo
  Get the current promotion for this section.
nextPromotion() : BelongsTo
  Get the next promotion for this section.
school() : BelongsTo
  Get the school for this section.
standardLink() : HasMany
  Get standard links for this section.
subject() : HasMany
  Get subjects in this section.

### Properties

#### $created_at

Section.php : 0
`public DateTime $created_at`

#### $currentPromotion read-only

Section.php : 0
`public Promotion $currentPromotion`

#### $deleted_at

Section.php : 0
`public DateTime $deleted_at`

#### $id

Section.php : 0
`public int $id`

#### $name

Section.php : 0
`public string $name`

#### $nextPromotion read-only

Section.php : 0
`public Promotion $nextPromotion`

#### $school read-only

Section.php : 0
`public School $school`

#### $school_id

Section.php : 0
`public int $school_id`

#### $standardLink read-only

Section.php : 0
`public Collection|array<string|int, StandardLink> $standardLink`

#### $status

Section.php : 0
`public int $status`

#### $subject read-only

Section.php : 0
`public Collection|array<string|int, Subject> $subject`

#### $updated_at

Section.php : 0
`public DateTime $updated_at`

#### $value

Section.php : 0
`public string $value`

#### $fillable

Section.php : 47

The attributes that are mass assignable.

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

#### $table

Section.php : 40

The table associated with the model.

`protected string $table = 'sections'`

### Methods

#### currentPromotion()

Section.php : 66

Get the current promotion for this section.

`public currentPromotion() : BelongsTo`

##### Return values

BelongsTo

#### nextPromotion()

Section.php : 76

Get the next promotion for this section.

`public nextPromotion() : BelongsTo`

##### Return values

BelongsTo

#### school()

Section.php : 56

Get the school for this section.

`public school() : BelongsTo`

##### Return values

BelongsTo

#### standardLink()

Section.php : 96

Get standard links for this section.

`public standardLink() : HasMany`

##### Return values

HasMany

#### subject()

Section.php : 86

Get subjects in this section.

`public subject() : HasMany`

##### Return values

HasMany

## Search results