'1.0.0', 'latest' => '1.0.0', 'is_latest' => true, 'daemon' => '1.0.0', 'discord' => 'https://pterodactyl.io/discord', 'donations' => 'https://github.com/sponsors/pterodactyl', ]; /** * Return panel and daemon version information. */ #[Endpoint('Get version information', 'Returns panel, Wings, and project version metadata.')] #[ScribeResponse(self::VERSION_EXAMPLE, description: 'Version information returned.')] public function __invoke(GetVersionRequest $request, SoftwareVersionService $version): JsonResponse { return new JsonResponse([ 'current' => config('app.version'), 'latest' => $version->getPanel(), 'is_latest' => $version->isLatestPanel(), 'daemon' => $version->getDaemon(), 'discord' => $version->getDiscord(), 'donations' => $version->getDonations(), ]); } }