public static function getValidatorErrorMessage($validator)
    {
        $messages = $validator->errors();
        $msgArr = $messages->all();
        $arr = [];
        foreach ($msgArr as $k => $v) {
            $arr[] = $v;
        }
        $ret = implode(",", $arr);
        return $ret;
    }
public static function getValidatorErrorMessage($validator)
    {
        $messages = $validator->errors();
        $msgArr = $messages->all();
        $arr = [];
        foreach ($msgArr as $k => $v) {
            $arr[] = $v;
        }
        $ret = implode(",", $arr);
        return $ret;
    }
public static function getValidatorErrorMessage ( $ validator ) { $ messages = $ validator -> errors ( ) ; $ msgArr = $ messages -> all ( ) ; $ arr = [ ] ; foreach ( $ msgArr as $ k => $ v ) { $ arr [ ] = $ v ; } $ ret = implode ( "," , $ arr ) ; return $ ret ; }
make Validator Error Message Readable
make Validator Error Message Readable