/** * Create tasks * * @param $id * @return Redirect */ public function createTasks($id) { if ($this->task->create($id)) { return redirect()->back()->withSuccess(trans('mturk.action.sent_to_mturk')); } return redirect()->back()->withError(trans('mturk.action.sent_fail_to_mturk')); }