From b33ad0c03ee16d0fcd7d5638b1144c229c6750ac Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 12 Aug 2021 22:04:50 +1000 Subject: [PATCH] Set plan --- app/Models/Account.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Models/Account.php b/app/Models/Account.php index 8b0c07dbfd0b..c31f9550bdd3 100644 --- a/app/Models/Account.php +++ b/app/Models/Account.php @@ -134,6 +134,9 @@ class Account extends BaseModel public function getPlan() { + if(Carbon\Carbon::parse($this->plan_expires)->lt(now())) + return ''; + return $this->plan ?: ''; }