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

27 lines
407 B
PHP

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