mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 19:18:56 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			383 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			383 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
namespace App\Ninja\Repositories;
 | 
						|
 | 
						|
use App\Models\Account;
 | 
						|
 | 
						|
class NinjaRepository
 | 
						|
{
 | 
						|
    public function updatePlanDetails($clientPublicId, $data)
 | 
						|
    {
 | 
						|
        $account = Account::whereId($clientPublicId)->first();
 | 
						|
 | 
						|
        if (! $account) {
 | 
						|
            return;
 | 
						|
        }
 | 
						|
 | 
						|
        $company = $account->company;
 | 
						|
        $company->fill($data);
 | 
						|
        $company->save();
 | 
						|
    }
 | 
						|
}
 |