/**
  * Store comment.
  *
  * @param CommentStoreRequest $request
  *
  * @return mixed
  */
 public function store(CommentStoreRequest $request)
 {
     $comment = $this->comment->create($request->all());
     return $this->response->withItem($comment, $this->commentTransformer);
 }
 public function comment($id, CommentStoreRequest $request)
 {
     $post = \App\Post::findOrFail($id);
     $comment = \App\Comment::create($request->all());
     $post->comments()->save($comment);
     return redirect()->route('posts.show', $post->id)->with('success', '回覆留言完成');
 }