I have a form with a series of numbers in an array:
<input type="number" name="items[{{ $sku }}]" min="0" />
<input type="number" name="items[{{ $sku }}]" min="0" />
<input type="number" name="items[{{ $sku }}]" min="0" />
I would like to validate that there is at least one of those input fields that has a value.
I tried the following in my OrderCreateRequest, yet the test is passing:
return [
'items' => 'required|array|min:1'
];
Am I missing something?