Answers for "why validation error messsge received even if i provide all keys laravel"

PHP
9

laravel validator make custom message

$rules = [
        'name' => 'required',
        'email' => 'required|email',
        'message' => 'required|max:250',
    ];

    $customMessages = [
        'required' => 'The :attribute field is required.'
    ];

    $this->validate($request, $rules, $customMessages);
Posted by: Guest on May-06-2020
0

laravel validation

Validator::extendImplicit('foo', function ($attribute, $value, $parameters, $validator) {
    return $value == 'foo';
});
Posted by: Guest on December-25-2020

Code answers related to "why validation error messsge received even if i provide all keys laravel"

Browse Popular Code Answers by Language