info('🚀 NetGescon - Creazione Documenti Demo Persistenti'); $this->info('================================================'); if ($this->option('force')) { $this->warn('⚠️ Modalità FORCE attivata - ricreo tutti i documenti demo'); \DB::table('documenti')->where('is_demo', true)->delete(); \DB::table('etichette_protocollo')->truncate(); } try { $seeder = new DocumentiDemoSeeder(); $seeder->run(); $count = \DB::table('documenti')->where('is_demo', true)->count(); $this->info("✅ Operazione completata con successo!"); $this->info("📄 Documenti demo creati: {$count}"); $this->info("🔗 Accedi alla gestione documentale dal pannello NetGescon"); return Command::SUCCESS; } catch (\Exception $e) { $this->error("❌ Errore durante la creazione dei documenti demo:"); $this->error($e->getMessage()); if ($this->option('verbose')) { $this->error($e->getTraceAsString()); } return Command::FAILURE; } } }