Skip to content

Commit 241235c

Browse files
committed
Order articles by publish date
1 parent b9fbad5 commit 241235c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/Http/Controllers/Articles/ArticlesController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public function index(Request $request)
4343

4444
$articles = Article::published()
4545
->notPinned($pinnedArticles)
46+
->latest('submitted_at')
4647
->{$filter}();
4748

4849
$tags = Tag::whereHas('articles', function ($query) {

0 commit comments

Comments
 (0)