From 02474fdff3683b1b9024b394860128ba191c0306 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 4 Oct 2021 10:17:26 +1100 Subject: [PATCH] 14 day trial --- app/Models/Account.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Models/Account.php b/app/Models/Account.php index 2884c6aca8dd..419eb4feb590 100644 --- a/app/Models/Account.php +++ b/app/Models/Account.php @@ -271,9 +271,12 @@ class Account extends BaseModel $trial_active = false; + //14 day trial + $duration = 60*60*24*14; + if ($trial_plan && $include_trial) { $trial_started = $this->trial_started; - $trial_expires = Carbon::parse($this->trial_started)->addSeconds($this->trial_duration); + $trial_expires = Carbon::parse($this->trial_started)->addSeconds($duration); if($trial_expires->greaterThan(now())){ $trial_active = true;