diff --git a/app/Models/HomeModel.php b/app/Models/HomeModel.php index 20d77835..edacace3 100755 --- a/app/Models/HomeModel.php +++ b/app/Models/HomeModel.php @@ -116,9 +116,9 @@ class HomeModel extends Model ->select('books.business_id,books.title as name ,scheme_id, books.short_code, count(*) as overall') ->join('books','books.book_id = subscription.scheme_id') - ->where('to_subscription>now()') + ->where('to_subscription>=CURDATE()') ->where('subscription.isactive',1) - ->groupBy('scheme_id'); + ->groupBy('scheme_id'); $results = $query->get()->getResultArray(); return $results; }