1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00
invoiceninja/app/Repositories/ProductRepository.php

27 lines
407 B
PHP
Raw Normal View History

2019-04-03 04:34:28 +02:00
<?php
namespace App\Repositories;
use App\Models\Product;
use Illuminate\Http\Request;
/**
*
*/
class ProductRepository extends BaseRepository
{
public function getClassName()
{
return Product::class;
}
public function save(Request $request, Product $product) : ?Product
{
$product->fill($request->input());
$product->save();
return $product;
}
}