14 day trial
This commit is contained in:
parent
c1a9948736
commit
02474fdff3
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue