From 59093efc3a2bac98fad95e2bde440d6bf864eb5b Mon Sep 17 00:00:00 2001 From: Mohamed jinas Date: Fri, 7 May 2021 07:25:06 +0500 Subject: [PATCH] Update HomeController.php --- app/Http/Controllers/HomeController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index 37fbc9d..0992623 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -43,21 +43,21 @@ class HomeController extends Controller $covid19 = config("karudhaas.topic_filters.covid19"); $covid19_articles = Cache::remember("home.articles.covid19", 600, function () use ($covid19) { return Article::with('source')->whereHas('topics', function ($q) use ($covid19) { - $q->whereIn('slug', ['mndf']); + $q->whereIn('slug', $covid19["keys"]); })->latest('published_date')->limit(5)->get(); }); $business = config("karudhaas.topic_filters.business"); $business_articles = Cache::remember("home.articles.business", 600, function () use ($business) { return Article::with('source')->whereHas('topics', function ($q) use ($business) { - $q->whereIn('slug', ['mndf']); + $q->whereIn('slug', $business["keys"]); })->latest('published_date')->limit(4)->get(); }); $sports = config("karudhaas.topic_filters.sports"); $sports_articles = Cache::remember("home.articles.sports", 600, function () use ($sports) { return Article::with('source')->whereHas('topics', function ($q) use ($sports) { - $q->whereIn('slug', ['mndf']); + $q->whereIn('slug',$sports["keys"]); })->latest('published_date')->limit(4)->get(); });