feat(blog): blog yazilari tarihe gore sondan basa (DESC) siralandi
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user