2019-12-04 12:49:41 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
namespace App\Repositories;
|
|
|
|
|
|
|
|
|
|
|
|
use App\Models\Product;
|
|
|
|
|
|
|
|
class ProductsRepository implements ProductsRepositoryInterface
|
|
|
|
{
|
|
|
|
public function create($data)
|
|
|
|
{
|
|
|
|
return Product::create($data);
|
|
|
|
}
|
2019-12-05 10:25:36 +01:00
|
|
|
|
|
|
|
public function paginate($chunkSize)
|
|
|
|
{
|
|
|
|
return Product::paginate($chunkSize);
|
|
|
|
}
|
2019-12-04 12:49:41 +01:00
|
|
|
}
|