From e430a67ae06b4bc5943d1bbd4f87a8aed6f4b26e Mon Sep 17 00:00:00 2001 From: Mohamed Jinas Date: Sat, 8 Aug 2020 21:10:24 +0500 Subject: [PATCH] Update LatestArticles.php --- app/Http/Controllers/LatestArticles.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Http/Controllers/LatestArticles.php b/app/Http/Controllers/LatestArticles.php index b821014..8bff8a3 100644 --- a/app/Http/Controllers/LatestArticles.php +++ b/app/Http/Controllers/LatestArticles.php @@ -10,8 +10,7 @@ final class LatestArticles extends Controller { public function __invoke() { - return ArticleResource::collection( - Article::with('source', 'topics') + return ArticleResource::collection(Article::with('source', 'topics') ->latest() ->take(8) ->get()