argument('status'); try { DB::table('vpn_status')->updateOrInsert( ['id' => 1], [ 'status' => $status, 'last_update' => now(), 'updated_at' => now(), ] ); Log::info("Stato VPN aggiornato: {$status}"); $this->info("Stato VPN aggiornato: {$status}"); } catch (\Exception $e) { Log::error("Errore aggiornamento stato VPN: " . $e->getMessage()); $this->error("Errore aggiornamento stato VPN: " . $e->getMessage()); } } }