code: public function update(ResponseRequest $request, Response $response)
      {
          try {
              $attributes = $request->all();
              $id = $attributes['question_id']; 
              $question = $this->question->selectquestion($id); 
              $response->update($attributes);
              return redirect('/discussion/'.$question['slug']);
          } catch (Exception $e) {
              return $this->response->message($e->getMessage())
                  ->code(400)
                  ->status('error')
                  ->url(guard_url('forum/response/' . $response->getRouteKey()))
                  ->redirect();
          }
  
      }
docs: Update the response.
  
  @param Request $request
  @param Model   $response
  
  @return Response