mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Add Payment Repo
This commit is contained in:
parent
6660e881ef
commit
9538626b03
29
app/Repositories/PaymentRepository.php
Normal file
29
app/Repositories/PaymentRepository.php
Normal file
@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace App\Repositories;
|
||||
|
||||
use App\Models\Payment;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
/**
|
||||
* PaymentRepository
|
||||
*/
|
||||
class PaymentRepository extends BaseRepository
|
||||
{
|
||||
|
||||
|
||||
public function getClassName()
|
||||
{
|
||||
return Payment::class;
|
||||
}
|
||||
|
||||
public function save(Request $request, Payment $payment) : ?Payment
|
||||
{
|
||||
$payment->fill($request->input());
|
||||
|
||||
$payment->save();
|
||||
|
||||
return $payment;
|
||||
}
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user