2022-08-05 19:05:59 +10:00
|
|
|
<?php
|
|
|
|
|
/**
|
|
|
|
|
* Invoice Ninja (https://invoiceninja.com).
|
|
|
|
|
*
|
|
|
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
|
|
|
*
|
2023-01-29 09:21:40 +11:00
|
|
|
* @copyright Copyright (c) 2023. Invoice Ninja LLC (https://invoiceninja.com)
|
2022-08-05 19:05:59 +10:00
|
|
|
*
|
|
|
|
|
* @license https://www.elastic.co/licensing/elastic-license
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
namespace App\Repositories;
|
|
|
|
|
|
|
|
|
|
use App\Models\BankIntegration;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Class for bank integration repository.
|
|
|
|
|
*/
|
|
|
|
|
class BankIntegrationRepository extends BaseRepository
|
|
|
|
|
{
|
2022-09-24 07:37:55 +10:00
|
|
|
public function save($data, BankIntegration $bank_integration)
|
2022-08-05 19:05:59 +10:00
|
|
|
{
|
|
|
|
|
//stub to store
|
2022-09-22 11:47:58 +10:00
|
|
|
$bank_integration->fill($data);
|
|
|
|
|
$bank_integration->save();
|
2022-08-05 19:05:59 +10:00
|
|
|
|
2022-09-22 11:47:58 +10:00
|
|
|
return $bank_integration->fresh();
|
2022-08-05 19:05:59 +10:00
|
|
|
}
|
|
|
|
|
}
|