private function checkPatterns($value, array $patterns)
    {
        foreach ($patterns as $pattern) {
            if (Str::is($pattern, $value)) return true;
        }

        return false;
    }
private function checkPatterns($value, array $patterns)
    {
        foreach ($patterns as $pattern) {
            if (Str::is($pattern, $value)) return true;
        }

        return false;
    }
private function checkPatterns ( $ value , array $ patterns ) { foreach ( $ patterns as $ pattern ) { if ( Str :: is ( $ pattern , $ value ) ) return true ; } return false ; }
Check if the value match the given patterns.

@param  string|null  $value
@param  array        $patterns

@return bool
Check if the value match the given patterns .