I received this data form{} from view in my controller ($rquest) How to get "product_id" values in product array with x items {} to use them in my controller ?
form: {
id: null,
sale_number: 2,
client: null,
products: [
{ product_id:1,description: null, quantity:1, price: 1}
{ product_id:2,description: null, quantity:1, price: 1}
{ product_id:3,description: null, quantity:1, price: 1}
.....etc
],
}
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire