public function storeComments(CommentRequest $request, $id) { $guide = Guide::findOrFail($id); $comment = new GuideComment(); $comment->user_id = Auth::user()->id; $comment->content = ubbReplace($request->input('content')); $comment->guide_id = $id; $comment->save(); Guide::updateCommentCount($guide); return redirect('guides/' . $id . '#comments'); }