Skip to content

Commit 5b7d487

Browse files
Fixed ordering of Announcements
1 parent 4482773 commit 5b7d487

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DigiKaksha/app/Course.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ public function groups()
1818
}
1919
public function announcements()
2020
{
21-
return $this->hasMany('App\Announcement')->orderBy('created_at');
21+
return $this->hasMany('App\Announcement')->orderBy('created_at', 'desc');
2222
}
2323
}

0 commit comments

Comments
 (0)