salesentry filters
This commit is contained in:
@ -23,6 +23,11 @@ class StockRepository implements StockInterface
|
||||
return Stock::where('email', $email)->first();
|
||||
}
|
||||
|
||||
public function getStocksByProduct($productId)
|
||||
{
|
||||
return Stock::where('product_id', $productId)->pluck('title', 'id');
|
||||
}
|
||||
|
||||
public function delete($StockId)
|
||||
{
|
||||
Stock::destroy($StockId);
|
||||
|
Reference in New Issue
Block a user