Example #1
0
 /**
  * @param  $id
  * @param  EditTaskRequest $request
  * @return mixed
  */
 public function edit($id, EditTaskRequest $request)
 {
     return view('backend.quiz.tasks.edit')->withTask($this->tasks->findOrThrowException($id))->withPolls(Poll::all()->pluck('title', 'id'));
 }
 /**
  * @param  $per_page
  * @return mixed
  */
 public function getPollsPaginated($per_page)
 {
     return Poll::paginate($per_page);
 }
Example #3
0
 /**
  * @param  $id
  * @param  $task_id
  * @param  EditTaskRequest $request
  * @return mixed
  */
 public function task($id, $task_id, EditTaskRequest $request)
 {
     return view('backend.access.task-edit')->withTask(Task::findOrThrowException($task_id))->withPolls(Poll::all()->pluck('title', 'id'));
 }