public function getCommentById($id) { $comment = $this->comment->with('user')->find($id); if (!empty($comment)) { return $comment; } return false; }