*/ use HasFactory, HasUlids; protected $fillable = [ 'webhook_endpoint_id', 'method', 'request_uri', 'headers', 'query_parameters', 'body', 'json_payload', 'content_type', 'body_size', 'ip_address', 'user_agent', 'received_at', ]; /** * @return array */ protected function casts(): array { return [ 'headers' => 'encrypted:array', 'query_parameters' => 'encrypted:array', 'body' => 'encrypted', 'json_payload' => 'encrypted:array', 'body_size' => 'integer', 'received_at' => 'datetime', ]; } public function endpoint(): BelongsTo { return $this->belongsTo(WebhookEndpoint::class, 'webhook_endpoint_id'); } }