feat(website-extras): refactor WebsiteExtra management to use 'codigo' for identification, update routes, requests, and services

This commit is contained in:
2026-07-31 09:27:35 -03:00
parent 40a7dece11
commit 6b3a12b624
14 changed files with 210 additions and 68 deletions

View File

@@ -42,7 +42,7 @@ class TenantResource extends JsonResource
'extras' => $this->whenLoaded(
'websiteExtras',
fn () => $this->websiteExtras->mapWithKeys(fn ($extra) => [
$extra->websiteTypeExtra->nombre => $this->formatExtraConfig(
$extra->websiteTypeExtra->codigo => $this->formatExtraConfig(
$extra->resolvedConfig()
),
])