detailsModificationService->returnUpdatedModel()->handle( $server, $request->validated() ); return $this->fractal->item($server) ->transformWith(ServerTransformer::class) ->toArray(); } /** * Update the build details for a specific server. * * @throws \Throwable */ public function build(UpdateServerBuildConfigurationRequest $request, Server $server): array { $server = $this->buildModificationService->handle($server, $request->validated()); return $this->fractal->item($server) ->transformWith(ServerTransformer::class) ->toArray(); } }