Owl\Repositories\Eloquent\CommentRepository::getCommentById PHP Метод

getCommentById() публичный Метод

Get a comment by comment id.
public getCommentById ( $id ) : Illuminate\Database\Eloquent\Model
$id int
Результат Illuminate\Database\Eloquent\Model
    public function getCommentById($id)
    {
        $comment = $this->comment->with('user')->find($id);
        if (!empty($comment)) {
            return $comment;
        }
        return false;
    }