*/ #[Endpoint('Update server build', 'Updates server limits, primary allocation, and feature limits.')] #[ResponseFromTransformer(ServerTransformer::class, Server::class, description: 'Server build updated.', factoryStates: ['withRelationships'], resourceKey: 'server')] public function __invoke(UpdateServerBuildConfigurationRequest $request, UpdatesServerBuild $build, Server $server): array { $server = $build->update($server, $request->actionInput()); Activity::event('admin:server.build') ->subject($server) ->property('name', $server->name) ->log(); return Fractal::item($server) ->transformWith($this->getTransformer(ServerTransformer::class)) ->toResponseArray(); } }