public function repack()
    {
        $this->extract();
        try {
            $this->app->make('helper/zip')->zip($this->getVolatileDirectory()->getPath(), $this->packageArchive, ['includeDotFiles' => true]);
        } catch (\Exception $x) {
            throw new UserMessageException($x->getMessage());
        }
    }
public function repack()
    {
        $this->extract();
        try {
            $this->app->make('helper/zip')->zip($this->getVolatileDirectory()->getPath(), $this->packageArchive, ['includeDotFiles' => true]);
        } catch (\Exception $x) {
            throw new UserMessageException($x->getMessage());
        }
    }
public function repack ( ) { $ this -> extract ( ) ; try { $ this -> app -> make ( 'helper/zip' ) -> zip ( $ this -> getVolatileDirectory ( ) -> getPath ( ) , $ this -> packageArchive , [ 'includeDotFiles' => true ] ) ; } catch ( \ Exception $ x ) { throw new UserMessageException ( $ x -> getMessage ( ) ) ; } }
Re-create the source archive with the contents of the extracted directory.

@throws UserMessageException
Re - create the source archive with the contents of the extracted directory .