salesentry filters

This commit is contained in:
Sampanna Rimal
2024-09-17 16:34:40 +05:45
parent afb2c202d6
commit 0b438e302d
19 changed files with 303 additions and 50 deletions

View File

@ -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);