0) { $this->info('Session cleanup completed:'); $this->info(" • Guest sessions (>24h): {$guest_count} deleted"); $this->info(" • Old sessions (>3y): {$old_count} deleted"); $this->info(" • Total: {$total_deleted} sessions removed"); $this->info(" • Execution time: {$execution_time}s"); // Also log to Laravel log for monitoring Log::info("Session cleanup: {$total_deleted} sessions deleted", [ 'guest_sessions' => $guest_count, 'old_sessions' => $old_count, 'execution_time' => $execution_time, ]); } else { $this->info("No sessions to clean up (execution time: {$execution_time}s)"); } return 0; } }