问答 / 0 / 1 / 创建于 6年前
请问本章如何对N+1问题进行优化?
$topics = Topic::where('category_id', $category->id)->with('user', 'category')->paginate(20);
我要举报该,理由是:
推荐文章: