/** * Execute the console command. * * @return mixed */ public function fire() { $contracts = $this->task->getContracts(); foreach ($contracts as $contract) { $this->notify->process($contract->id); } }
/** * Display all the contracts sent for MTurk * * @return \Illuminate\View\View */ public function index() { $contracts = $this->task->getContracts(); return view('mturk.index', compact('contracts')); }