mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Trial Tracking
This commit is contained in:
parent
a6b222bd9a
commit
d7e55c043c
@ -86,7 +86,10 @@ class NinjaPlanController extends Controller
|
||||
|
||||
public function trial_confirmation(Request $request)
|
||||
{
|
||||
$trial_started = "Trial Started @ ".now()->format('Y-m-d H:i:s');
|
||||
|
||||
$client = auth()->guard('contact')->user()->client;
|
||||
$client->private_notes = $trial_started;
|
||||
$client->fill($request->all());
|
||||
$client->save();
|
||||
|
||||
@ -150,6 +153,7 @@ class NinjaPlanController extends Controller
|
||||
$account->plan_expires = now()->addDays(14);
|
||||
$account->is_trial=true;
|
||||
$account->hosted_company_count = 10;
|
||||
$account->trial_started = now();
|
||||
$account->save();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user