get("ssh-keys/{$coolify_key_name}"); $coolify_key_in_database = PrivateKey::where('name', 'Coolify Host'); if (!$coolify_key && $coolify_key_in_database->exists()) { Storage::disk('local')->put("ssh-keys/{$coolify_key_name}", $coolify_key_in_database->first()->private_key); } if ($coolify_key && !$coolify_key_in_database->exists()) { PrivateKey::create([ 'name' => 'Coolify Host', 'description' => 'The private key for the Coolify host machine.', 'private_key' => $coolify_key, ]); } } }