laravel 5.8 子查询 怎么写?
SELECT
id, title,( SELECT count( id ) FROM test WHERE pid = t1.id ) AS number
FROM
test AS t1
WHERE
pid = 0;