diff --git a/app/Http/Controllers/CompanyController.php b/app/Http/Controllers/CompanyController.php index a22091a21..913ce2d95 100644 --- a/app/Http/Controllers/CompanyController.php +++ b/app/Http/Controllers/CompanyController.php @@ -581,4 +581,9 @@ class CompanyController extends BaseController return $this->itemResponse($company->fresh()); } + + // public function default(DefaultCompanyRequest $request, Company $company) + // { + + // } } diff --git a/app/Models/Account.php b/app/Models/Account.php index cecd88477..5e2ea2137 100644 --- a/app/Models/Account.php +++ b/app/Models/Account.php @@ -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;