*
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -17,7 +17,7 @@ class MusicianAgreementService extends Service | ... | @@ -17,7 +17,7 @@ class MusicianAgreementService extends Service |
17 | public function treatyList() | 17 | public function treatyList() |
18 | { | 18 | { |
19 | $res = Treaty::query()->whereIn('party_b', $this->stakeholder_ids)->where('deadline_date', '>', $this->now)->with(['file:id,treaty_id,file_id', 'file.fileInfo:id,location']) | 19 | $res = Treaty::query()->whereIn('party_b', $this->stakeholder_ids)->where('deadline_date', '>', $this->now)->with(['file:id,treaty_id,file_id', 'file.fileInfo:id,location']) |
20 | ->select(['id', 'treaty_name', 'treaty_type', 'service_type', 'deadline_date', 'music_no'])->paginate($this->pageSize); | 20 | ->select(['id', 'treaty_name', 'treaty_type', 'service_type', 'deadline_date', 'music_no'])->orderByDesc('created_at')->paginate($this->pageSize); |
21 | 21 | ||
22 | foreach ($res as &$item) { | 22 | foreach ($res as &$item) { |
23 | $item_res = $item->toArray(); | 23 | $item_res = $item->toArray(); | ... | ... |
-
Please register or sign in to post a comment