mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
27 lines
407 B
PHP
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;
|
|
}
|
|
|
|
} |