table('tblcontacts')->orderBy('id'); $bar = $this->output->createProgressBar($contacts->count()); foreach ($contacts->cursor() as $contact) { $writer->write($contact, $customers->resolve((int) $contact->userid)); $bar->advance(); } $bar->finish(); $this->newLine(); $this->info('Đã nhập liên hệ vào khách tiềm năng (leads).'); app(SyncReport::class)->finish($this); return Command::SUCCESS; } }