I\'m trying to use the validation attributes in \"language > {language} > validation.php\", to replace the :attribute name (input name) for a proper to read name (example: f
In Laravel 7.
use Illuminate\Support\Facades\Validator;
Then define niceNames
$niceNames = array( 'name' => 'Name', );
And the last, just put $niceNames in fourth parameter, like this:
$validator = Validator::make($request->all(), $rules, $messages, $niceNames);