*/ protected $casts = [ 'status' => FormWebhookDeliveryStatus::class, 'payload_snapshot' => 'array', 'last_attempt_at' => 'datetime', 'next_retry_at' => 'datetime', 'delivered_at' => 'datetime', 'failed_permanently_at' => 'datetime', 'attempts' => 'int', 'response_status' => 'int', ]; public function webhook(): BelongsTo { return $this->belongsTo(FormSchemaWebhook::class, 'form_schema_webhook_id'); } public function submission(): BelongsTo { return $this->belongsTo(FormSubmission::class, 'form_submission_id'); } }