Update trial plans
This commit is contained in:
parent
d7d3c8d591
commit
623fbdb229
1 changed files with 2 additions and 1 deletions
|
|
@ -92,7 +92,6 @@ class NinjaPlanController extends Controller
|
|||
]);
|
||||
|
||||
$data['intent'] = $setupIntent;
|
||||
// $data['account'] = $account;
|
||||
$data['client'] = Auth::guard('contact')->user()->client;
|
||||
|
||||
return $this->render('plan.trial', $data);
|
||||
|
|
@ -139,6 +138,8 @@ class NinjaPlanController extends Controller
|
|||
$account = Account::where('key', auth()->guard('contact')->user()->client->custom_value2)->first();
|
||||
$account->trial_started = now();
|
||||
$account->trial_plan = 'pro';
|
||||
$account->plan = 'pro';
|
||||
$account->plan_expires = now()->addDays(14);
|
||||
$account->save();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue