|
@@ -44,7 +44,13 @@ class TopicRepository {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- return $this->topic->where($where)->orderBy('id','desc')->paginate($perPage);
|
|
|
+ return $this->topic
|
|
|
+ ->where($where)
|
|
|
+ ->orderBy('is_hot','desc')
|
|
|
+ ->orderBy('is_suggest','desc')
|
|
|
+ ->orderBy('is_open','desc')
|
|
|
+ ->orderBy('id','desc')
|
|
|
+ ->paginate($perPage);
|
|
|
}
|
|
|
//新增
|
|
|
public function create($request){
|