Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $product_availability = Stock::select('available_stock')->where('product_id', $request->product_id)->first();
- $rules = array(
- 'product_id' => 'required',
- 'quantity_sold'=>'max:'.$product_availability,
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement