app/Http/Requests/UserRequest.php
/**
     * Get the error messages for the defined validation rules.
     *
     * @return array
     */
Get the error messages for the defined validation rules.
@return array
Get the error messages for the defined validation rules . @return array
public function messages()
    {
        return [
            'name.required' => 'Please fill the name.',
            'email.required' => 'Please fill the email.',
            'password.required' => 'Please fill the password.',
        ];
    }
public function messages ( ) { return [ 'name.required' => 'Please fill the name.' , 'email.required' => 'Please fill the email.' , 'password.required' => 'Please fill the password.' , ] ; }
Get the error messages for the defined validation rules.
Get the error messages for the defined validation rules .