*/ use HasFactory; /** * @return array */ protected function casts(): array { return [ 'attempt_count' => 'integer', 'channel' => NotificationChannel::class, 'delivered_at' => 'datetime', 'delivery_status' => NotificationDeliveryStatus::class, 'event_type' => NotificationEventType::class, 'http_status' => 'integer', 'last_attempted_at' => 'datetime', 'payload_metadata' => 'array', ]; } public function notificationAction(): BelongsTo { return $this->belongsTo(NotificationAction::class); } }