How to validate by Id laravel
now i use this in my controller. My problem is In my html I've my input type text like this
<input type="text" name="quantity_box[]" class="form-control" autofocus="" />
<input type="text" name="quantity_box[1]" class="form-control" autofocus="" />
<input type="text" name="quantity_box[2]" class="form-control" autofocus="" />
well, as you see in my html It check only my first input if my quantity_box[1] is empty it will return error offset 1 , that's not sure how to work this out
$this->validate($request, [
'id_p' => 'required',
'id_c' => 'required',
'quantity_box'=>'required',
]
Form Request Validationlaravel.com/docs/5.5/validation#form-request-validation