name, [RoleType::ADMIN->value, RoleType::SYSTEM_ADMIN->value])) { throw new Exception(__('domains/identity/messages.exceptions.cannot_remove_system_role')); } if ($role->users()->exists()) { throw new Exception(__('domains/identity/messages.exceptions.role_has_users')); } } }