Indicate the incorrect key in Laravel's array rule validation error message
I am doing FormRequest validation. I am using the array rule to ensure that only specified keys are allowed in the validated array. For example: $rules = [ 'example' => ['array:something,another'], ]; However, if this rule encounters an array key…