소스 검색

Order notes by effective date (desc)

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

+ 1 - 1
app/Models/Client.php

@@ -31,7 +31,7 @@ class Client extends Model
     }
 
     public function notes() {
-        return $this->hasMany(Note::class, 'client_id', 'id')->orderBy('created_at', 'desc');
+        return $this->hasMany(Note::class, 'client_id', 'id')->orderBy('effective_dateest', 'desc');
     }
 
     public function duplicateOf() {