mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
19 lines
367 B
PHP
19 lines
367 B
PHP
<?php namespace App\Ninja\Repositories;
|
|
|
|
use App\Models\Account;
|
|
|
|
class NinjaRepository
|
|
{
|
|
public function updateProPlanPaid($clientPublicId, $proPlanPaid)
|
|
{
|
|
$account = Account::whereId($clientPublicId)->first();
|
|
|
|
if (!$account) {
|
|
return;
|
|
}
|
|
|
|
$account->pro_plan_paid = $proPlanPaid;
|
|
$account->save();
|
|
}
|
|
}
|