salesentry filters
This commit is contained in:
@ -23,6 +23,11 @@ class ProductRepository implements ProductInterface
|
||||
return Product::where('email', $email)->first();
|
||||
}
|
||||
|
||||
public function getProductsByCategory($categoryId)
|
||||
{
|
||||
return Product::where('category_id', $categoryId)->pluck('name', 'id');
|
||||
}
|
||||
|
||||
public function delete($ProductId)
|
||||
{
|
||||
Product::destroy($ProductId);
|
||||
|
Reference in New Issue
Block a user