public function create($object_id) { $newComment = Comment::create(['object_id' => $object_id, 'user_id' => Auth::id(), 'comment' => Input::get('comment.comment'), 'parent' => Input::get('comment.parent'), 'depth' => 0]); $comment = Comment::where('comment_id', $newComment->comment_id)->with('user')->first(); Redis::sadd('objects:toReindex', $object_id); return response()->json($comment); }