feat(blog): blog yazilari tarihe gore sondan basa (DESC) siralandi

This commit is contained in:
Ümit Tunç
2026-09-01 14:58:42 +03:00
parent a2fe9e136b
commit b9a069b905
3 changed files with 3 additions and 3 deletions
@@ -3,7 +3,7 @@
$blogs = \App\Models\Blog::with(['category', 'author', 'careerApplication'])
->withCount('comments')
->published()
->latest('published_at')
->orderByRaw('COALESCE(published_at, created_at) DESC')
->limit(6)
->get();
@endphp