Sort bookmarks by create date (desc)
This commit is contained in:
parent
fb18db918a
commit
a0f116c7a3
@ -15,7 +15,7 @@ class BookmarkController extends Controller
|
||||
{
|
||||
return view(
|
||||
'bookmarks.index', [
|
||||
'bookmarks' => Bookmark::paginate(20),
|
||||
'bookmarks' => Bookmark::orderByDesc('created_at')->paginate(20),
|
||||
]
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user