public function exclude(array $patterns)
    {
        return $this->reject(function ($file) use ($patterns) {
            foreach ($patterns as $pattern) {
                if (Str::is($pattern, $file['name'])) return true;
            }

            return false;
        });
    }
public function exclude(array $patterns)
    {
        return $this->reject(function ($file) use ($patterns) {
            foreach ($patterns as $pattern) {
                if (Str::is($pattern, $file['name'])) return true;
            }

            return false;
        });
    }
public function exclude ( array $ patterns ) { return $ this -> reject ( function ( $ file ) use ( $ patterns ) { foreach ( $ patterns as $ pattern ) { if ( Str :: is ( $ pattern , $ file [ 'name' ] ) ) return true ; } return false ; } ) ; }
ExcludePattern files with the given patterns.

@param  array  $patterns

@return self
ExcludePattern files with the given patterns .