feat(tenant): implement website extras functionality and validation in tenant creation
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user