Support renewing white label license early
This commit is contained in:
parent
d8cab55786
commit
d6b0827eac
1 changed files with 2 additions and 1 deletions
|
|
@ -149,7 +149,8 @@ class StartupCheck
|
|||
$company = Auth::user()->account->company;
|
||||
$company->plan_term = PLAN_TERM_YEARLY;
|
||||
$company->plan_paid = $data;
|
||||
$company->plan_expires = date_create($data)->modify('+1 year')->format('Y-m-d');
|
||||
$date = max(date_create($data), date_create($company->plan_expires));
|
||||
$company->plan_expires = $date->modify('+1 year')->format('Y-m-d');
|
||||
$company->plan = PLAN_WHITE_LABEL;
|
||||
$company->save();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue