Menu

## Feedback extends Model
in package
uses SoftDeletes

Feedback.php : 31

Class Feedback

Model for managing feedback and discussions between parents and administrators.

##### Tags

mixin

### Table of Contents

#### Properties

$admin : User
$admin_id : int
$created_at : DateTime
$deleted_at : DateTime
$feedbackMessage : Collection|array<string|int, FeedbackMessage>
$id : int
$latestMessage : FeedbackMessage
$parent : User
$parent_id : int
$school_id : int
$status : int
$student : User
$student_id : 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

admin() : BelongsTo
  Get the admin handling this feedback.
feedbackMessage() : HasMany
  Get feedback messages for this feedback.
latestMessage() : HasOne
  Get the latest message for this feedback.
parent() : BelongsTo
  Get the parent who initiated this feedback.
student() : BelongsTo
  Get the student related to this feedback.

### Properties

#### $admin read-only

Feedback.php : 0
`public User $admin`

#### $admin_id

Feedback.php : 0
`public int $admin_id`

#### $created_at

Feedback.php : 0
`public DateTime $created_at`

#### $deleted_at

Feedback.php : 0
`public DateTime $deleted_at`

#### $feedbackMessage read-only

Feedback.php : 0
`public Collection|array<string|int, FeedbackMessage> $feedbackMessage`

#### $id

Feedback.php : 0
`public int $id`

#### $latestMessage read-only

Feedback.php : 0
`public FeedbackMessage $latestMessage`

#### $parent read-only

Feedback.php : 0
`public User $parent`

#### $parent_id

Feedback.php : 0
`public int $parent_id`

#### $school_id

Feedback.php : 0
`public int $school_id`

#### $status

Feedback.php : 0
`public int $status`

#### $student read-only

Feedback.php : 0
`public User $student`

#### $student_id

Feedback.php : 0
`public int $student_id`

#### $updated_at

Feedback.php : 0
`public DateTime $updated_at`

#### $dates

Feedback.php : 51

The attributes that should be mutated to dates.

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

#### $fillable

Feedback.php : 42

The attributes that are mass assignable.

`protected array<string|int, mixed> $fillable = ['school_id', 'parent_id', 'student_id', 'admin_id', 'status']`

#### $table

Feedback.php : 35
`protected mixed $table = 'feedbacks'`

### Methods

#### admin()

Feedback.php : 98

Get the admin handling this feedback.

`public admin() : BelongsTo`

##### Return values

BelongsTo

#### feedbackMessage()

Feedback.php : 58

Get feedback messages for this feedback.

`public feedbackMessage() : HasMany`

##### Return values

HasMany

#### latestMessage()

Feedback.php : 68

Get the latest message for this feedback.

`public latestMessage() : HasOne`

##### Return values

HasOne

#### parent()

Feedback.php : 78

Get the parent who initiated this feedback.

`public parent() : BelongsTo`

##### Return values

BelongsTo

#### student()

Feedback.php : 88

Get the student related to this feedback.

`public student() : BelongsTo`

##### Return values

BelongsTo

## Search results