Beispiel #1
0
 /**
  * Update the specified resource in storage.
  *
  * @param  App\requests\CommentRequest $request
  * @param  int  $id
  * @return Response
  */
 public function update(CommentRequest $request, $id)
 {
     $id = $request->segment(2);
     $content = $request->input('comments' . $id);
     $this->comment_gestion->updateContent($content, $id);
     return response()->json(['id' => $id, 'content' => $content]);
 }