Menu

## Chapter extends Model
in package
uses SoftDeletes

Chapter.php : 29

Class Chapter

Model for managing chapters/topics in curriculum.

##### Tags

mixin

### Table of Contents

#### Properties

$created_at : DateTime
$deleted_at : DateTime
$id : int
$name : string
$questions : Collection|array<string|int, QuizQuestion>
$school : School
$school_id : int
$standard_id : int
$standardLink : StandardLink
$subject : Subject
$subject_id : int
$updated_at : DateTime
$fillable : mixed

#### Methods

questions() : HasMany
  Get the quiz questions for this chapter.
school() : BelongsTo
  Get the school for this chapter.
standardLink() : BelongsTo
  Get the standard link for this chapter.
subject() : BelongsTo
  Get the subject for this chapter.

### Properties

#### $created_at

Chapter.php : 0
`public DateTime $created_at`

#### $deleted_at

Chapter.php : 0
`public DateTime $deleted_at`

#### $id

Chapter.php : 0
`public int $id`

#### $name

Chapter.php : 0
`public string $name`

#### $questions read-only

Chapter.php : 0
`public Collection|array<string|int, QuizQuestion> $questions`

#### $school read-only

Chapter.php : 0
`public School $school`

#### $school_id

Chapter.php : 0
`public int $school_id`

#### $standard_id

Chapter.php : 0
`public int $standard_id`

#### $standardLink read-only

Chapter.php : 0
`public StandardLink $standardLink`

#### $subject read-only

Chapter.php : 0
`public Subject $subject`

#### $subject_id

Chapter.php : 0
`public int $subject_id`

#### $updated_at

Chapter.php : 0
`public DateTime $updated_at`

#### $fillable

Chapter.php : 33
`protected mixed $fillable = ['school_id', 'standard_id', 'subject_id', ' name']`

### Methods

#### questions()

Chapter.php : 72

Get the quiz questions for this chapter.

`public questions() : HasMany`

##### Return values

HasMany

#### school()

Chapter.php : 42

Get the school for this chapter.

`public school() : BelongsTo`

##### Return values

BelongsTo

#### standardLink()

Chapter.php : 52

Get the standard link for this chapter.

`public standardLink() : BelongsTo`

##### Return values

BelongsTo

#### subject()

Chapter.php : 62

Get the subject for this chapter.

`public subject() : BelongsTo`

##### Return values

BelongsTo

## Search results