add name of the filed of arraay to validation error laravel code example
Example: laravel validation types for float
//For float, must use numeric validator
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'field' => 'numeric'
];
}