Browse Source

列表升序改为倒序排列

durong 5 years ago
parent
commit
e1de490a83
1 changed files with 1 additions and 1 deletions
  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)