code: public function store(ResponseRequest $request)
      {
  
          try {
              $request              = $request->all(); 
              $slug = $request['slug']; 
              $attributes['comment'] = $request['comment'];
              $attributes['question_id'] = $request['question_id'];
              $attributes['user_id']   = user_id();
              $attributes['user_type'] = user_type();
              $response                 = $this->repository->create($attributes);
  
              return $this->response->message(trans('messages.success.created', ['Module' => trans('forum::response.name')]))
                  ->code(204)
                  ->status('success')
                  ->url(trans_url('/discussion/'.$slug))
                  ->redirect();
          } catch (Exception $e) {
              return $this->response->message($e->getMessage())
                  ->code(400)
                  ->status('error')
                  ->url(trans_url('/question/'.$slug))
                  ->redirect();
          }
  
      }
docs: Create new response.
  
  @param Request $request
  
  @return Response