diff --git a/app/Server/Http/Controllers/Admin/ListSitesController.php b/app/Server/Http/Controllers/Admin/ListSitesController.php index 80d4e9b..8e23976 100644 --- a/app/Server/Http/Controllers/Admin/ListSitesController.php +++ b/app/Server/Http/Controllers/Admin/ListSitesController.php @@ -25,7 +25,12 @@ public function handle(Request $request, ConnectionInterface $httpConnection) $sites = $this->getView($httpConnection, 'server.sites.index', [ 'scheme' => $this->configuration->port() === 443 ? 'https' : 'http', 'configuration' => $this->configuration, - 'sites' => $this->connectionManager->getConnections(), + 'sites' => collect($this->connectionManager->getConnections())->map(function ($site, $siteId) { + $site = $site->toArray(); + $site['id'] = $siteId; + + return $site; + })->values(), ]); $httpConnection->send(