Update Domains.php

This commit is contained in:
samirimtiaz1996 2024-06-19 01:35:33 +06:00
parent d688244664
commit 5530f7263f

View File

@ -191,6 +191,7 @@ public function deleteDomains(Request $request)
$domainsToDelete = $request->domains;
$updatedDomains = array_diff($existingDomains, $domainsToDelete);
$application->fqdn = implode(',', $updatedDomains);
$application->custom_labels = base64_encode(implode("\n ", generateLabelsApplication($application)));
$application->save();
return response()->json([
'success' => true,