Check out the withCount('relation_name'). method in eloquent Ex: $posts = App\Post::withCount([ 'comments', 'comments as ...
確定! 回上一頁