1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00
invoiceninja/app/Repositories/PaymentRepository.php
2019-05-03 18:32:30 +10:00

29 lines
442 B
PHP

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