소스 검색

Sort by is_open - open ones first

Vijayakrishnan 4 년 전
부모
커밋
0736617853
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      app/Models/Client.php

+ 1 - 0
app/Models/Client.php

@@ -283,6 +283,7 @@ class Client extends Model
     public function tickets()
     {
         return $this->hasMany(Ticket::class, 'client_id', 'id')
+            ->orderBy('is_open', 'desc')
             ->orderBy('created_at', 'desc');
     }