whereYear('created_at', date('Y')); $transactions = $transactions->count(); $hosts = Host::count(); $workOrders = WorkOrder::count(); $replies = Reply::count(); $servers = Cache::get('servers', []); $servers = count($servers); $this->warn('用户数量: ' . $users); $this->warn('主机数量: ' . $hosts); $this->warn('服务器数量: ' . $servers); $this->warn('工单数量: ' . $workOrders); $this->warn('工单回复数量: ' . $replies); $this->warn('今年的交易记录: ' . $transactions); } }