I came across an issue while doing Laravel 5, and that was the validation default message key in the validation response array “The Given data was invalid”.

I wanted to have that set in a language file instead of using a static English string.

 

Here’s the file you need to edit at line 57.

..\vendor\laravel\framework\src\Illuminate\Validation\ValidationException.php

 

Set that to any language key you want, i chose ‘validation.message’ :

 

Have a good day.