'boolean', ]; /** * The attributes that should be mutated to dates. * * @var array */ protected $dates = [ 'verified_at', 'preferred_time', ]; /** * Get the user associated with the user notification channel. * * @return BelongsTo */ public function user() { return $this->belongsTo(User::class); } /** * Get the user notification sent records associated with the user * notification channel. * * @return HasMany */ public function userNotificationSent() { return $this->hasMany(UserNotificationSent::class); } /** * Get the contact reminder records associated with the user. * * @return BelongsToMany */ public function contactReminders() { return $this->belongsToMany(ContactReminder::class, 'contact_reminder_scheduled')->withTimestamps()->withPivot('scheduled_at', 'triggered'); } }