feat: enhance tenant resource to include menues and update seeder for new menu routes

This commit is contained in:
2026-07-14 11:44:57 -03:00
parent 9c7d025258
commit e325c49a89
3 changed files with 31 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ class BootstrapTenantController extends Controller
$dominio = $request->validated('dominio');
return TenantResource::make(
Tenant::query()->with(['headerLogo', 'footerLogo'])->where('dominio', $dominio)->firstOrFail()
Tenant::query()->with(['headerLogo', 'footerLogo', 'menues'])->where('dominio', $dominio)->firstOrFail()
);
}
}

View File

@@ -31,6 +31,7 @@ class TenantResource extends JsonResource
'footer_logo' => $this->footerLogo?->getTemporaryUrl(1440 ),
'hero_config' => $this->hero_config,
'event_config' => $this->event_config,
'menues' => $this->whenLoaded('menues'),
];
}
}