repository = $repository; } /** * Returns installation information for a server. * * @param \Illuminate\Http\Request $request * @param string $uuid * @return \Illuminate\Http\JsonResponse * * @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException */ public function __invoke(Request $request, string $uuid) { $server = $this->repository->getByUuid($uuid); $egg = $server->egg; return JsonResponse::create([ 'container_image' => $egg->copy_script_container, 'entrypoint' => $egg->copy_script_entry, 'script' => $egg->copy_script_install, ]); } }