Owl\Libraries\CustomValidator::validateAlphaDash PHP Method

validateAlphaDash() protected method

Validate that an attribute contains only alpha-numeric characters, dashes, and underscores.
protected validateAlphaDash ( string $attribute, mixed $value ) : boolean
$attribute string
$value mixed
return boolean
    protected function validateAlphaDash($attribute, $value)
    {
        return preg_match('/^[\\pL\\pN_-]+$/', $value);
    }