找不到 withOrder 方法?
我在TopicsController和CategoriesController两个控制器中复制教材中的withOrder方法都会报错
$topics = $topic->withOrder($request->order)
->where('category_id', $category->id)
->paginate(20);
报错截图如下:
请问这是什么原因
推荐文章: