Client send data in JSON format to server:
{
"Product": [{
"quantity": 4,
"id": 1
}]
}
On the server I tried to validate incoming data using this rule:
"Product" => "required|array",
"Product.*.id" => "integer",
"Product.*.quantity" => "integer"
Why does it not validate? Where is my mistake?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire