/** * To update a task * * @return \Symfony\Component\HttpFoundation\Response */ public function update() { if ($this->isEmpty('update')) { $task = $this->taskRepo->update(\Request::all()); if ($task) { return $this->responseUpdate('Task'); } else { return $this->responseBad('Whoops! There were some problems with your input.'); } } return $this->responseBad('Please, provides all the input correctly.'); }