Menu

## FeedbackMessage extends Model
in package
uses PresentableTrait, SoftDeletes

FeedbackMessage.php : 34

Class FeedbackMessage

Model for managing individual messages within feedback conversations.

##### Tags

mixin

### Table of Contents

#### Properties

$category : string
$created_at : DateTime
$deleted_at : DateTime
$deleted_from_receiver : int
$deleted_from_sender : int
$feedback : Feedback
$feedback_id : int
$file : string
$id : int
$is_seen : int
$message : string
$school : School
$school_id : int
$updated_at : DateTime
$user : User
$user_id : int
$appends : mixed
$dates : array<string|int, mixed>
  The attributes that should be mutated to dates.
$fillable : array<string|int, mixed>
  The attributes that are mass assignable.
$presenter : mixed
$table : mixed

#### Methods

feedback() : BelongsTo
  Get the feedback conversation this message belongs to.
getMessageAttribute() : string
  Get and sanitize the message content.
school() : BelongsTo
  Get the school for this feedback message.
user() : BelongsTo
  Get the user who sent this message.

### Properties

#### $category

FeedbackMessage.php : 0
`public string $category`

#### $created_at

FeedbackMessage.php : 0
`public DateTime $created_at`

#### $deleted_at

FeedbackMessage.php : 0
`public DateTime $deleted_at`

#### $deleted_from_receiver

FeedbackMessage.php : 0
`public int $deleted_from_receiver`

#### $deleted_from_sender

FeedbackMessage.php : 0
`public int $deleted_from_sender`

#### $feedback read-only

FeedbackMessage.php : 0
`public Feedback $feedback`

#### $feedback_id

FeedbackMessage.php : 0
`public int $feedback_id`

#### $file

FeedbackMessage.php : 0
`public string $file`

#### $id

FeedbackMessage.php : 0
`public int $id`

#### $is_seen

FeedbackMessage.php : 0
`public int $is_seen`

#### $message

FeedbackMessage.php : 0
`public string $message`

#### $school read-only

FeedbackMessage.php : 0
`public School $school`

#### $school_id

FeedbackMessage.php : 0
`public int $school_id`

#### $updated_at

FeedbackMessage.php : 0
`public DateTime $updated_at`

#### $user read-only

FeedbackMessage.php : 0
`public User $user`

#### $user_id

FeedbackMessage.php : 0
`public int $user_id`

#### $appends

FeedbackMessage.php : 43
`protected mixed $appends = array('message')`

#### $dates

FeedbackMessage.php : 59

The attributes that should be mutated to dates.

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

#### $fillable

FeedbackMessage.php : 50

The attributes that are mass assignable.

`protected array<string|int, mixed> $fillable = ['school_id', 'user_id', 'feedback_id', 'message', 'file', 'category', 'is_seen', 'deleted_from_sender', 'deleted_from_receiver']`

#### $presenter

FeedbackMessage.php : 39
`protected mixed $presenter = "App\\Presenters\\UserPresenter"`

#### $table

FeedbackMessage.php : 41
`protected mixed $table = 'feedback_messages'`

### Methods

#### feedback()

FeedbackMessage.php : 86

Get the feedback conversation this message belongs to.

`public feedback() : BelongsTo`

##### Return values

BelongsTo

#### getMessageAttribute()

FeedbackMessage.php : 97

Get and sanitize the message content.

`public getMessageAttribute(string $message) : string`

##### Parameters

$message : string

##### Return values

string

#### school()

FeedbackMessage.php : 66

Get the school for this feedback message.

`public school() : BelongsTo`

##### Return values

BelongsTo

#### user()

FeedbackMessage.php : 76

Get the user who sent this message.

`public user() : BelongsTo`

##### Return values

BelongsTo

## Search results