/** * To fetch a single task that associated with the given id * * @param task $id * * @return \Symfony\Component\HttpFoundation\Response */ public function show($id) { $task = $this->taskRepo->find($id); return $this->response($this->taskTransformer->transform($task)); }