feat: show install command on machine creation

This commit is contained in:
xboard committed 2026-04-17 06:47:05 +08:00
1 parent 6796b70179
commit 83b43e8664
4 files changed
+7 -6

No files matched your search

@@ -17,7 +17,7 @@ class ManageController extends Controller
public function getNodes(Request $request)
{
$servers = ServerService::getAllServers()->map(function ($item) {
$item['groups'] = ServerGroup::whereIn('id', $item['group_ids'])->get(['name', 'id']);
$item['groups'] = ServerGroup::whereIn('id', $item['group_ids'] ?? [])->get(['name', 'id']);
$item['parent'] = $item->parent;
return $item;
});