$name, 'available' => false, 'reserved' => false, 'reason' => 'Invalid name format.', 'fqdn' => "{$name}.lthn", ]; } $alias = $this->rpc->getAliasByName($name); $reserved = Cache::has("name_lock:{$name}"); return [ 'name' => $name, 'available' => $alias === null && ! $reserved, 'reserved' => $reserved, 'fqdn' => "{$name}.lthn", ]; } public static function run(string $name): array { return app(static::class)->handle($name); } }