Zipper
Zipper copied to clipboard
Chumper\Zipper\Zipper::make(): Cannot destroy the zip context
Cannot create the next structure -zip -folder -subfolder -file -subfolder -file -file
The code is here: $zip = storage_path() . '/app/downloads/' . $theme[ 'slug' ] . '.zip';
$zipper->make( $zip )->folder( 'assets/css' )->add( storage_path() . '/app/assets/theme.css' );
$zipper->zip( $zip )->folder( 'assets/js' )->add( storage_path() . '/app/assets/js.js' );
$zipper->zip( $zip )->folder( 'assets/js' )->add( storage_path() . '/app/assets/app.js' );
$zipper->zip( $zip )->add( storage_path() . '/app/user.1/' . $theme[ 'slug' ] . '/index.html' );