public function except($assets)
    {
        $assets = array_flatten(func_get_args());

        // Store the directory instance on a variable that we can inject into the scope of
        // the closure below. This allows us to call the path conversion method.
        $directory = $this;

        $this->assets = $this->assets->filter(function($asset) use ($assets, $directory)
        {
            $path = $directory->getPathRelativeToDirectory($asset->getRelativePath());

            return ! in_array($path, $assets);
        });

        return $this;
    }
public function except($assets)
    {
        $assets = array_flatten(func_get_args());

        // Store the directory instance on a variable that we can inject into the scope of
        // the closure below. This allows us to call the path conversion method.
        $directory = $this;

        $this->assets = $this->assets->filter(function($asset) use ($assets, $directory)
        {
            $path = $directory->getPathRelativeToDirectory($asset->getRelativePath());

            return ! in_array($path, $assets);
        });

        return $this;
    }
public function except ( $ assets ) { $ assets = array_flatten ( func_get_args ( ) ) ; // Store the directory instance on a variable that we can inject into the scope of // the closure below. This allows us to call the path conversion method. $ directory = $ this ; $ this -> assets = $ this -> assets -> filter ( function ( $ asset ) use ( $ assets , $ directory ) { $ path = $ directory -> getPathRelativeToDirectory ( $ asset -> getRelativePath ( ) ) ; return ! in_array ( $ path , $ assets ) ; } ) ; return $ this ; }
Exclude an array of assets.

@param  string|array  $assets
@return \Basset\Directory
Exclude an array of assets .