Skip to content

Commit

Permalink
Merge pull request #70 from SlovakNationalGallery/GMBUVP-133
Browse files Browse the repository at this point in the history
Fix ordering of newest artworks
  • Loading branch information
rastislav-chynoransky authored Nov 8, 2024
2 parents 4f3b201 + 023cef6 commit 04fec19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
'artworks' => Artwork::published()
->has('coverPhotoMedia')
->with(['authors', 'coverPhotoMedia', 'yearBuilt'])
->orderByDesc('is_promoted', 'created_at')
->orderByDesc('is_promoted')
->orderByDesc('created_at')
->take(4)
->get(),

Expand Down

0 comments on commit 04fec19

Please sign in to comment.