src/Support/PublicReflection.php
public static function hasAttribute(string $className, string $name): bool
    {
        return in_array($name, static::attributes($className));
    }
public static function hasAttribute(string $className, string $name): bool
    {
        return in_array($name, static::attributes($className));
    }
Checks to see if the given attribute is in the list of public attributes.

@param string $className
@param string $name
@return bool