浏览代码

列表升序改为倒序排列

durong 5 年之前
父节点
当前提交
e1de490a83
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Repositories/MusicRepository.php

+ 1 - 1
app/Repositories/MusicRepository.php

@@ -35,7 +35,7 @@ class MusicRepository
             $where[] = ['id', '=', $request['id']];
         }
 
-        return $this->postMusicCategory->where($where)->orderBy('id', 'asc')->paginate($perPage);
+        return $this->postMusicCategory->where($where)->orderBy('id', 'desc')->paginate($perPage);
     }
 
     public function categoryCreate($request)