fixes for trial_started

This commit is contained in:
David Bomba 2021-07-14 17:15:59 +10:00
parent 336e982f69
commit d448ae1119
2 changed files with 6 additions and 1 deletions

View File

@ -581,4 +581,9 @@ class CompanyController extends BaseController
return $this->itemResponse($company->fresh());
}
// public function default(DefaultCompanyRequest $request, Company $company)
// {
// }
}

View File

@ -261,7 +261,7 @@ class Account extends BaseModel
if ($trial_plan && $include_trial) {
$trial_started = $this->trial_started;
$trial_expires = $this->trial_started->addSeconds($this->trial_duration);
$trial_expires = Carbon::parse($this->trial_started)->addSeconds($this->trial_duration);
if($trial_expires->greaterThan(now())){
$trial_active = true;