lavavel 5.5 withCount()方法出错
$tables = $tables->withCount([$item => function ($query) { $query->activeState(); }]);
"message": "Method withCount does not exist.",
"exception": "BadMethodCallException",
$tables = $tables->withCount([$item => function ($query) { $query->activeState(); }]);
"message": "Method withCount does not exist.",
"exception": "BadMethodCallException",
无评论