/**
  * Execute the console command.
  *
  * @return mixed
  */
 public function fire()
 {
     $contracts = $this->task->getContracts();
     foreach ($contracts as $contract) {
         $this->notify->process($contract->id);
     }
 }
 /**
  * @param Request     $request
  * @param UserService $user
  * @return View
  */
 public function activity(Request $request, UserService $user)
 {
     $filter = $request->only('contract', 'user');
     $activities = $this->activity->getAll($filter);
     $users = $user->getList();
     $contracts = $this->task->getContractsList();
     return view('mturk.activity', compact('activities', 'users', 'contracts'));
 }
 /**
  * Execute the queue
  *
  * @param $job
  * @param $data
  */
 public function fire($job, $data)
 {
     $this->task->mTurkProcess($data['contract_id']);
     $job->delete();
 }