Advertisement
Guest User

Untitled

a guest
Jan 16th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. $product_availability = Stock::select('available_stock')->where('product_id', $request->product_id)->first();
  2.  
  3. $rules = array(
  4. 'product_id' => 'required',
  5. 'quantity_sold'=>'max:'.$product_availability,
  6.  
  7. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement