Browse Source

Note > claims > order by created_at DESC

Vijayakrishnan 4 năm trước cách đây
mục cha
commit
d4790f867b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/Models/Note.php

+ 1 - 1
app/Models/Note.php

@@ -58,7 +58,7 @@ class Note extends Model
 
     public function claims()
     {
-        return $this->hasMany(Claim::class, 'note_id', 'id');
+        return $this->hasMany(Claim::class, 'note_id', 'id')->orderBy('created_at', 'DESC');
     }
 
     public function summary()