From 198e2969bde83afda5f0fcadab682b6b2d76e675 Mon Sep 17 00:00:00 2001 From: Mohamed jinas Date: Sat, 6 Jan 2024 16:21:37 +0500 Subject: [PATCH] remove covid --- app/Http/Controllers/HomeController.php | 14 +++++++------- resources/views/home.blade.php | 2 ++ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index 01bb752..cae4964 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -39,12 +39,12 @@ class HomeController extends Controller })->unique('source.name')->values(); }); - $covid19 = config("karudhaas.topic_filters.covid19"); - $covid19_articles = Cache::remember("home.articles.covid19", 3600, function () use ($covid19) { // Cache for an hour - return Article::with('source')->whereHas('topics', function ($q) use ($covid19) { - $q->whereIn('slug', $covid19["keys"]); - })->latest('published_date')->limit(5)->get(); - }); + // $covid19 = config("karudhaas.topic_filters.covid19"); + // $covid19_articles = Cache::remember("home.articles.covid19", 3600, function () use ($covid19) { // Cache for an hour + // return Article::with('source')->whereHas('topics', function ($q) use ($covid19) { + // $q->whereIn('slug', $covid19["keys"]); + // })->latest('published_date')->limit(5)->get(); + // }); $business = config("karudhaas.topic_filters.business"); $business_articles = Cache::remember("home.articles.business", 3600, function () use ($business) { // Cache for an hour @@ -62,7 +62,7 @@ class HomeController extends Controller return view('home', [ "todays_pick" => $todays_pick, - "covid19_articles" => $covid19_articles, + // "covid19_articles" => $covid19_articles, "business_articles" => $business_articles, "sports_articles" => $sports_articles ]); diff --git a/resources/views/home.blade.php b/resources/views/home.blade.php index c8c907f..167fa52 100644 --- a/resources/views/home.blade.php +++ b/resources/views/home.blade.php @@ -126,6 +126,7 @@ + @if(true == false)

ކޮވިޑް 19 އާއި ގުޅޭ

@@ -182,6 +183,7 @@
+ @endif