mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 06:04:34 -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)
|
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 = auth()->guard('contact')->user()->client;
|
||||||
|
$client->private_notes = $trial_started;
|
||||||
$client->fill($request->all());
|
$client->fill($request->all());
|
||||||
$client->save();
|
$client->save();
|
||||||
|
|
||||||
@ -150,6 +153,7 @@ class NinjaPlanController extends Controller
|
|||||||
$account->plan_expires = now()->addDays(14);
|
$account->plan_expires = now()->addDays(14);
|
||||||
$account->is_trial=true;
|
$account->is_trial=true;
|
||||||
$account->hosted_company_count = 10;
|
$account->hosted_company_count = 10;
|
||||||
|
$account->trial_started = now();
|
||||||
$account->save();
|
$account->save();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user