I post my input in an array like this:
<input class="form-control" id="first_name" name="main_user[first_name]" type="text">
And I want to use the Laravel Requests to validate this input. Usually you determine the validation rules like this in a Request file:
return ['first_name' => 'required']
But this won't work because first_name is posted inside an array. I tried this, but it doesn't work.
return ['main_user[first_name]' => 'required']