Menu

## Reminder extends Model
in package
uses SoftDeletes

Reminder.php : 38

Class Reminder

Model for managing reminders sent to users via email or SMS.

##### Tags

mixin

### Table of Contents

#### Properties

$created_at : DateTime
$data : array<string|int, mixed>
$deleted_at : DateTime
$entity_id : int
$entity_name : string
$events : Events
$executed_at : DateTime
$from : string
$id : int
$message : string
$queue_status : int
$school : School
$school_id : int
$sms_response : array<string|int, mixed>
$subject : string
$template_id : int
$to : string
$updated_at : DateTime
$user : User
$userSms : User
$via : string
$casts : mixed
$fillable : array<string|int, mixed>
  The attributes that are mass assignable.
$table : string
  The table associated with the model.

#### Methods

events() : BelongsTo
  Get the event for this reminder.
school() : BelongsTo
  Get the school for this reminder.
user() : BelongsTo
  Get the user for email delivery.
userSms() : BelongsTo
  Get the user for SMS delivery.

### Properties

#### $created_at

Reminder.php : 0
`public DateTime $created_at`

#### $data

Reminder.php : 0
`public array<string|int, mixed> $data`

#### $deleted_at

Reminder.php : 0
`public DateTime $deleted_at`

#### $entity_id

Reminder.php : 0
`public int $entity_id`

#### $entity_name

Reminder.php : 0
`public string $entity_name`

#### $events read-only

Reminder.php : 0
`public Events $events`

#### $executed_at

Reminder.php : 0
`public DateTime $executed_at`

#### $from

Reminder.php : 0
`public string $from`

#### $id

Reminder.php : 0
`public int $id`

#### $message

Reminder.php : 0
`public string $message`

#### $queue_status

Reminder.php : 0
`public int $queue_status`

#### $school read-only

Reminder.php : 0
`public School $school`

#### $school_id

Reminder.php : 0
`public int $school_id`

#### $sms_response

Reminder.php : 0
`public array<string|int, mixed> $sms_response`

#### $subject

Reminder.php : 0
`public string $subject`

#### $template_id

Reminder.php : 0
`public int $template_id`

#### $to

Reminder.php : 0
`public string $to`

#### $updated_at

Reminder.php : 0
`public DateTime $updated_at`

#### $user read-only

Reminder.php : 0
`public User $user`

#### $userSms read-only

Reminder.php : 0
`public User $userSms`

#### $via

Reminder.php : 0
`public string $via`

#### $casts

Reminder.php : 59
`protected mixed $casts = ['data' => 'array', 'sms_response' => 'array']`

#### $fillable

Reminder.php : 55

The attributes that are mass assignable.

`protected array<string|int, mixed> $fillable = ['school_id', 'from', 'to', 'subject', 'message', 'entity_id', 'entity_name', 'via', 'queue_status', 'sms_response', 'executed_at', 'template_id', 'data']`

#### $table

Reminder.php : 48

The table associated with the model.

`protected string $table = 'reminders'`

### Methods

#### events()

Reminder.php : 66

Get the event for this reminder.

`public events() : BelongsTo`

##### Return values

BelongsTo

#### school()

Reminder.php : 76

Get the school for this reminder.

`public school() : BelongsTo`

##### Return values

BelongsTo

#### user()

Reminder.php : 86

Get the user for email delivery.

`public user() : BelongsTo`

##### Return values

BelongsTo

#### userSms()

Reminder.php : 96

Get the user for SMS delivery.

`public userSms() : BelongsTo`

##### Return values

BelongsTo

## Search results