1
0
mirror of https://github.com/Kovah/LinkAce.git synced 2025-02-23 18:53:13 +01:00

Order links in overview by creation date

This commit is contained in:
Kovah 2018-08-29 17:21:41 +02:00
parent 76795da0c2
commit 6d3c040ede
No known key found for this signature in database
GPG Key ID: AAAA031BA9830D7B

View File

@ -21,6 +21,7 @@ class LinkController extends Controller
{
return view('models.links.index')
->with('links', Link::byUser(auth()->user()->id)
->orderBy('created_at', 'DESC')
->paginate(config('linkace.default.pagination'))
);
}