1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 08:21:34 +02:00

Add Payment Repo

This commit is contained in:
David Bomba 2019-05-03 18:32:30 +10:00
parent 6660e881ef
commit 9538626b03

View 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;
}
}