From 79f4333a309b67b10085ff7748984324b0034ed5 Mon Sep 17 00:00:00 2001 From: Joao Patricio Date: Sun, 22 Nov 2020 19:45:00 +0000 Subject: [PATCH] Adds displaying recent links on top. --- domains/Links/Controllers/LinksIndexController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/domains/Links/Controllers/LinksIndexController.php b/domains/Links/Controllers/LinksIndexController.php index 775ce1a..940a049 100644 --- a/domains/Links/Controllers/LinksIndexController.php +++ b/domains/Links/Controllers/LinksIndexController.php @@ -27,6 +27,7 @@ public function __invoke(Request $request): AnonymousResourceCollection ); }) ->approved() + ->latest() ->simplePaginate(); return LinkResource::collection($links);