Overtrue\Validation\Validator::validateAlphaNum PHP Method

validateAlphaNum() protected method

Validate that an attribute contains only alpha-numeric characters.
protected validateAlphaNum ( string $attribute, mixed $value ) : boolean
$attribute string
$value mixed
return boolean
    protected function validateAlphaNum($attribute, $value)
    {
        return preg_match('/^[\\pL\\pM\\pN]+$/u', $value);
    }
Validator