From d5f969c453286025382ddfb45fbb49b358cd688f Mon Sep 17 00:00:00 2001 From: "Harry (hjbdev)" Date: Mon, 31 Mar 2025 15:54:51 +0000 Subject: [PATCH] command fixes --- app/Console/Commands/CreateServiceCommand.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/CreateServiceCommand.php b/app/Console/Commands/CreateServiceCommand.php index 3de9435..147a759 100644 --- a/app/Console/Commands/CreateServiceCommand.php +++ b/app/Console/Commands/CreateServiceCommand.php @@ -28,13 +28,14 @@ class CreateServiceCommand extends Command ]); $serviceName = $this->components->ask('Enter the service name'); + list ($type, $version) = explode('-', $serviceType); $service = app(CreateService::class)->execute( server: $server, name: $serviceName, category: ServiceCategory::DATABASE, - type: ServiceType::POSTGRES, - version: '17', + type: ServiceType::tryFrom($type), + version: $version, driverName: $serviceType, );