mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Update trial plans
This commit is contained in:
parent
d7d3c8d591
commit
623fbdb229
@ -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…
x
Reference in New Issue
Block a user