Menu

## ClassRoomPageCategory extends Model
in package
uses SoftDeletes

ClassRoomPageCategory.php : 28

Class ClassRoomPageCategory

Model for managing classroom page categories.

##### Tags

mixin

### Table of Contents

#### Properties

$academic_year_id : int
$academicYear : AcademicYear
$classRoomPage : Collection|array<string|int, ClassRoomPage>
$created_at : DateTime
$deleted_at : DateTime
$id : int
$name : string
$school : School
$school_id : int
$status : int
$updated_at : DateTime
$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 : mixed

#### Methods

academicYear() : BelongsTo
  Get the academic year for this category.
classRoomPage() : HasMany
  Get classroom pages in this category.
school() : BelongsTo
  Get the school for this category.

### Properties

#### $academic_year_id

ClassRoomPageCategory.php : 0
`public int $academic_year_id`

#### $academicYear read-only

ClassRoomPageCategory.php : 0
`public AcademicYear $academicYear`

#### $classRoomPage read-only

ClassRoomPageCategory.php : 0
`public Collection|array<string|int, ClassRoomPage> $classRoomPage`

#### $created_at

ClassRoomPageCategory.php : 0
`public DateTime $created_at`

#### $deleted_at

ClassRoomPageCategory.php : 0
`public DateTime $deleted_at`

#### $id

ClassRoomPageCategory.php : 0
`public int $id`

#### $name

ClassRoomPageCategory.php : 0
`public string $name`

#### $school read-only

ClassRoomPageCategory.php : 0
`public School $school`

#### $school_id

ClassRoomPageCategory.php : 0
`public int $school_id`

#### $status

ClassRoomPageCategory.php : 0
`public int $status`

#### $updated_at

ClassRoomPageCategory.php : 0
`public DateTime $updated_at`

#### $dates

ClassRoomPageCategory.php : 48

The attributes that should be mutated to dates.

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

#### $fillable

ClassRoomPageCategory.php : 39

The attributes that are mass assignable.

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

#### $table

ClassRoomPageCategory.php : 32
`protected mixed $table = 'class_room_page_categories'`

### Methods

#### academicYear()

ClassRoomPageCategory.php : 65

Get the academic year for this category.

`public academicYear() : BelongsTo`

##### Return values

BelongsTo

#### classRoomPage()

ClassRoomPageCategory.php : 75

Get classroom pages in this category.

`public classRoomPage() : HasMany`

##### Return values

HasMany

#### school()

ClassRoomPageCategory.php : 55

Get the school for this category.

`public school() : BelongsTo`

##### Return values

BelongsTo

## Search results