EMfinanga
4 months ago
254
2
Laravel

Check multiple input with foreach loop

Posted 4 months ago by EMfinanga

I have multiple input of order form(product,price, qnty, store and amount)

I want to put the condition if the product quantity is bigger than stock then redirect back with error

Also i want to check foreach product name if it available (added) on stock inorder to perform the sales if not redirect it back.

Someone can share me an idea to archive this as well.

Please sign in or create an account to participate in this conversation.