I'd like to create an array of objects (or a bi-dimensional array) from a form using Laravel
the blade.php looks like
@foreach($objets as $objet)
<tr>
<td>
<input type="text" name="objets[]" id="field_A" value="{{$objet->field_A}}">
</td>
<td>
<input type="text" name="objets[]" id="field_B" value="{{$objet->field_B}}">
</td>
</tr>
@endforeach
Currently, when validating the form, the variable $objets is an array, with all values, but not an array of array.
$objetsyou can cast into an object for your convenience