feat(tenant): implement website extras functionality and validation in tenant creation

This commit is contained in:
2026-07-29 15:16:33 -03:00
parent 9e3163b74f
commit 27d4f9fac6
7 changed files with 520 additions and 8 deletions

View File

@@ -30,7 +30,13 @@ class TenantController extends Controller
$tenant = $this->tenantService->create($request->validated());
return TenantResource::make(
$tenant->loadMissing(['headerLogo', 'footerLogo', 'socialMedia'])
$tenant->loadMissing([
'headerLogo',
'footerLogo',
'socialMedia',
'websiteType',
'websiteExtras.websiteTypeExtra',
])
)->response()->setStatusCode(201);
}