/** * Execute the console command. * @return void */ public function fire() { $message = CampaignWorker::instance()->process(); $this->output->writeln($message); }
public function registerSchedule($schedule) { $schedule->call(function () { CampaignWorker::instance()->process(); })->everyFiveMinutes(); }