Sort bookmarks by create date (desc)

This commit is contained in:
Annika Backstrom 2024-05-30 21:55:42 +01:00
parent fb18db918a
commit a0f116c7a3
Signed by: annika
GPG Key ID: 3561F004DE1D9AFE

View File

@ -15,7 +15,7 @@ class BookmarkController extends Controller
{
return view(
'bookmarks.index', [
'bookmarks' => Bookmark::paginate(20),
'bookmarks' => Bookmark::orderByDesc('created_at')->paginate(20),
]
);
}